function date_views_argument_handler::options_submit in Date 7
Same name and namespace in other branches
- 8 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::options_submit()
- 7.3 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::options_submit()
- 7.2 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::options_submit()
Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
Overrides views_handler_argument::options_submit
File
- date_views/
includes/ date_views_argument_handler.inc, line 131 - Date API views argument handler.
Class
- date_views_argument_handler
- Date API argument handler.
Code
function options_submit(&$form, &$form_state) {
// It is very important to call the parent function here:
parent::options_submit($form, $form_state);
if ($form_state['values']['form_id'] == 'views_ui_config_item_form') {
$form_state['values']['options']['date_fields'] = array_filter($form_state['values']['options']['date_fields']);
}
}