You are here

function manualcrop_checkboxes_filter in Manual Crop 7

Checkboxes element validation callback used to filter all unselected items from the #value array.

1 string reference to 'manualcrop_checkboxes_filter'
manualcrop_field_widget_settings_form in ./manualcrop.admin.inc
Add the Manual Crop field widget settings.

File

./manualcrop.admin.inc, line 809
Admin functionality for the Manual Crop module.

Code

function manualcrop_checkboxes_filter($element, &$form_state, $form) {
  if (isset($element['#value'])) {
    form_set_value($element, array_filter($element['#value']), $form_state);
  }
}