1 image.admin.inc image_effect_form_submit($form, &$form_state)

Submit handler for updating an image effect.

File

core/modules/image/image.admin.inc, line 396
Admin page callbacks for the Image module.

Code

function image_effect_form_submit($form, &$form_state) {
  $effect = array_merge($form_state['image_effect'], $form_state['values']);
  image_effect_save($form_state['image_style']['name'], $effect);
  backdrop_set_message(t('The image effect was successfully applied.'));
  $form_state['redirect'] = 'admin/config/media/image-styles/configure/' . $form_state['image_style']['name'];
}