You are here

function tzfield_elements in Time Zone Field 6

Implementation of FAPI hook_elements().

File

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

Code

function tzfield_elements() {
  return array(
    'tzfield_select' => array(
      '#columns' => array(
        'timezone',
      ),
      '#delta' => 0,
      '#input' => TRUE,
      '#process' => array(
        'tzfield_select_process',
      ),
    ),
    'tzfield_autocomplete' => array(
      '#columns' => array(
        'timezone',
      ),
      '#delta' => 0,
      '#input' => TRUE,
      '#process' => array(
        'tzfield_autocomplete_process',
      ),
      '#autocomplete_path' => FALSE,
    ),
  );
}