You are here

function date_repeat_element_info in Date 7

Same name and namespace in other branches
  1. 8 date_repeat/date_repeat.module \date_repeat_element_info()
  2. 7.3 date_repeat/date_repeat.module \date_repeat_element_info()
  3. 7.2 date_repeat/date_repeat.module \date_repeat_element_info()

Implement hook_element_info().

File

date_repeat/date_repeat.module, line 19
This module creates a form element that allows users to select repeat rules for a date, and reworks the result into an iCal RRULE string that can be stored in the database.

Code

function date_repeat_element_info() {
  $type['date_repeat_rrule'] = array(
    '#input' => TRUE,
    '#process' => array(
      'date_repeat_rrule_process',
    ),
    '#element_validate' => array(
      'date_repeat_rrule_validate',
    ),
    '#value_callback' => 'date_repeat_value_callback',
    '#theme_wrappers' => array(
      'date_repeat_rrule',
    ),
  );
  return $type;
}