function image_effect_form_submit

Submit handler for updating an image effect.

File

modules/image/image.admin.inc, line 450

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'];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.