You are here

function hms_field_element_info in HMS Field 7

Implements hook_element_info().

File

./hms_field.module, line 10
Provides an hms_field functionality.

Code

function hms_field_element_info() {
  return array(
    'hms' => array(
      '#input' => TRUE,
      '#size' => 8,
      '#maxlength' => 16,
      '#default_value' => NULL,
      '#autocomplete_path' => FALSE,
      '#process' => array(
        'ajax_process_form',
      ),
      '#theme' => 'textfield',
      '#theme_wrappers' => array(
        'form_element',
      ),
      '#pre_render' => array(
        '_hms_pre_render_form_element',
      ),
      '#value_callback' => '_hms_value_callback',
      '#format' => 'h:mm:ss',
      '#element_validate' => array(
        '_hms_validate_form_element',
      ),
    ),
  );
}