function date_repeat_add_addition_callback in Date 7
Same name and namespace in other branches
- 8 date_repeat/date_repeat_form.inc \date_repeat_add_addition_callback()
- 7.3 date_repeat/date_repeat_form.inc \date_repeat_add_addition_callback()
- 7.2 date_repeat/date_repeat_form.inc \date_repeat_add_addition_callback()
1 string reference to 'date_repeat_add_addition_callback'
- _date_repeat_rrule_process in date_repeat/
date_repeat_form.inc - Generate the repeat setting form.
File
- date_repeat/
date_repeat_form.inc, line 256 - Code to add a date repeat selection form to a date field and create an iCal RRULE from the chosen selections.
Code
function date_repeat_add_addition_callback($form, &$form_state) {
$parents = $form_state['triggering_element']['#array_parents'];
$button_key = array_pop($parents);
$element = drupal_array_get_nested_value($form, $parents);
return $element;
}