You are here

function image_effect_form_submit in Drupal 7

Submit handler for updating an image effect.

File

modules/image/image.admin.inc, line 437
Administration pages for image settings.

Code

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