You are here

function insert_field_widget_settings_styles_validate in Insert 6

Same name and namespace in other branches
  1. 7 insert.module \insert_field_widget_settings_styles_validate()

An #element_validate function for the styles list on the settings form.

1 string reference to 'insert_field_widget_settings_styles_validate'
insert_widget_form in ./insert.module
Configuration form for editing insert settings for a field instance.

File

./insert.module, line 362
Allows insertion of files, images, and other media directly into the body field by using an "Insert" button next to the uploaded file.

Code

function insert_field_widget_settings_styles_validate($element, &$form_state) {
  if (array_values($element['#value']) == array_keys($element['#options'])) {
    form_set_value($element, array(
      '<all>' => '<all>',
    ), $form_state);
  }
}