function insert_field_widget_settings_styles_validate in Insert 7
Same name and namespace in other branches
- 6 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_field_widget_settings_form in ./
insert.module - Configuration form for editing insert settings for a field instance.
File
- ./
insert.module, line 452 - 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);
}
}