function cck_select_other_handler_filter::value_submit in CCK Select Other 7
Same name and namespace in other branches
- 7.2 views/cck_select_other_handler_filter.inc \cck_select_other_handler_filter::value_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_filter_in_operator::value_submit
File
- views/
cck_select_other_handler_filter.inc, line 135
Class
- cck_select_other_handler_filter
- Extends Views in operator filter.
Code
function value_submit($form, &$form_state) {
// Capture the values into a separate array and reset the value array.
$values = $form_state['values']['options']['value'];
$form_state['values']['options']['value'] = array();
foreach ($values['select_other_list'] as $key => $value) {
if ($value && $key == $value) {
$form_state['values']['options']['value'][] = $value;
}
}
}