You are here

function tzfield_widget_info in Time Zone Field 6

Implementation of hook_widget_info().

File

./tzfield.module, line 177
Defines a field type for storing timezones.

Code

function tzfield_widget_info() {
  return array(
    'tzfield_select' => array(
      'label' => 'Select list',
      'field types' => array(
        'timezone',
      ),
      'multiple values' => CONTENT_HANDLE_MODULE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_DEFAULT,
      ),
    ),
    'tzfield_autocomplete' => array(
      'label' => 'Autocomplete text field',
      'field types' => array(
        'timezone',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_DEFAULT,
      ),
    ),
  );
}