function date_repeat_element_info in Date 7.2
Same name and namespace in other branches
- 8 date_repeat/date_repeat.module \date_repeat_element_info()
- 7.3 date_repeat/date_repeat.module \date_repeat_element_info()
- 7 date_repeat/date_repeat.module \date_repeat_element_info()
Implements hook_element_info().
File
- date_repeat/
date_repeat.module, line 21 - Primary hook implementations for the Date Repeat module.
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',
),
'#theme_wrappers' => array(
'date_repeat_rrule',
),
);
$type['date_repeat_form_element_radios'] = array(
'#input' => TRUE,
'#process' => array(
'date_repeat_form_element_radios_process',
),
'#theme_wrappers' => array(
'radios',
),
'#pre_render' => array(
'form_pre_render_conditional_form_element',
),
);
if (module_exists('ctools')) {
$type['date_repeat_rrule']['#pre_render'] = array(
'ctools_dependent_pre_render',
);
}
return $type;
}