gmap_cck_field_formatter_info

Definition

gmap_cck_field_formatter_info()
gmap_addons/gmap_cck.module, line 231

Description

Declare information about a formatter.

Return value

An array keyed by formatter name. Each element of the array is an associative array with these keys and values:

  • "label": The human-readable label for the formatter.
  • "field types": An array of field type names that can be displayed using this formatter.

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

<?php
function gmap_cck_field_formatter_info() {
  return array(
    'default' => array(
      'label' => t('Default map'),
      'field types' => array('gmap_cck'),
    ),
    // TODO: add list of configurable small map-displays
  );
}
?>