You are here

function _addressfield_field_formatter_settings_form_validate in Address Field 7

Helper function: filter the results of the checkboxes form element.

1 string reference to '_addressfield_field_formatter_settings_form_validate'
addressfield_field_formatter_settings_form in ./addressfield.module
Implements hook_field_formatter_settings_form().

File

./addressfield.module, line 772
Defines a field for attaching country-specific addresses to entities.

Code

function _addressfield_field_formatter_settings_form_validate($element, &$element_state) {
  form_set_value($element, array_filter($element['#value']), $element_state);
}