function file_style_form_override_submit in Styles 7
Same name and namespace in other branches
- 7.2 contrib/file_styles/file_styles.admin.inc \file_style_form_override_submit()
Submit handler for overriding a module-defined style.
1 string reference to 'file_style_form_override_submit'
- file_style_form in contrib/
file_styles/ file_styles.admin.inc - Form builder; Edit a file style name and effects order.
File
- contrib/
file_styles/ file_styles.admin.inc, line 287 - Administrative page callbacks for the File: Styles module.
Code
function file_style_form_override_submit($form, &$form_state) {
drupal_set_message(t('The %style style has been overridden, allowing you to change its settings.', array(
'%style' => $form_state['file_style']['name'],
)));
file_default_style_save($form_state['file_style']);
}