gmap_cck_widget_info

Definition

gmap_cck_widget_info()
gmap_addons/gmap_cck.module, line 300

Description

Declare information about a widget.

Return value

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

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

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

<?php
function gmap_cck_widget_info() {
  return array(
    'gmap_cck' => array(
      'label' => 'Google Map',
      'field types' => array('gmap_cck'),
    ),
  );
}
?>