function date_repeat_add_exception in Date 8
Same name and namespace in other branches
- 7.3 date_repeat/date_repeat_form.inc \date_repeat_add_exception()
- 7 date_repeat/date_repeat_form.inc \date_repeat_add_exception()
- 7.2 date_repeat/date_repeat_form.inc \date_repeat_add_exception()
1 string reference to 'date_repeat_add_exception'
- _date_repeat_rrule_process in date_repeat/
date_repeat_form.inc - Generate the repeat setting form.
File
- date_repeat/
date_repeat_form.inc, line 715 - 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_exception($form, &$form_state) {
$parents = $form_state['triggering_element']['#array_parents'];
$instance = implode('-', array_slice($parents, 0, count($parents) - 2));
$form_state['num_exceptions'][$instance]++;
$form_state['rebuild'] = TRUE;
}