You are here

function geolocation_widget_settings in Geolocation Field 6

Implementation of hook_widget_settings().

File

./geolocation.module, line 276

Code

function geolocation_widget_settings($op, $widget) {
  switch ($op) {
    case 'form':

      // Create the form element to be used on the widget
      // settings form. Widget settings can be different
      // for each shared instance of the same field and
      // should define the way the value is displayed to
      // the user in the edit form for that content type.
      break;
      return NULL;
    case 'save':

      // Return an array of the names of the widget settings
      // defined by this module. These are the items that
      // CCK will store in the widget definition and they
      // will be available in the $field['widget'] array.
      // This should match the items defined in 'form' above.
      break;
      return NULL;
  }
}