function _countries_checkbox_filter in Countries 7.2
Same name and namespace in other branches
- 8 countries.fields.inc \_countries_checkbox_filter()
Helper function to filter empty options from a multi-checkbox field.
2 string references to '_countries_checkbox_filter'
- countries_filter_options_form in ./
countries.fields.inc - Wrapper for the filter form options that are shared with other fields.
- views_handler_filter_countries_list::extra_options_form in views/
views_handler_filter_countries_list.inc - Provide a form for setting options.
File
- ./
countries.fields.inc, line 451 - All field related code.
Code
function _countries_checkbox_filter($element, &$form_state) {
form_set_value($element, $element['#value'], $form_state);
}