1 image.admin.inc | image_style_add_form_submit($form, &$form_state) |
Submit handler for adding a new image style.
File
- core/
modules/ image/ image.admin.inc, line 255 - Admin page callbacks for the Image module.
Code
function image_style_add_form_submit($form, &$form_state) {
$style = array(
'name' => $form_state['values']['name'],
'label' => $form_state['values']['label'],
);
$style = image_style_save($style);
backdrop_set_message(t('Style %name was created.', array('%name' => $style['label'])));
$form_state['redirect'] = 'admin/config/media/image-styles/configure/' . $style['name'];
}