function image_effect_delete_form

image_effect_delete_form($form, &$form_state, $style, $effect)

Form builder; Form for deleting an image effect.

Parameters

$style: Name of the image style from which the image effect will be removed.

$effect: Name of the image effect to remove.

See also

image_effect_delete_form_submit()

Related topics

File

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

Code

function image_effect_delete_form($form, &$form_state, $style, $effect) {
  $form_state['image_style'] = $style;
  $form_state['image_effect'] = $effect;

  $question = t('Are you sure you want to delete the @effect effect from the %style style?', array('%style' => $style['label'], '@effect' => $effect['label']));
  return confirm_form($form, $question, 'admin/config/media/image-styles/edit/' . $style['name'], '', t('Delete'));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!image!image.admin.inc/function/image_effect_delete_form/7.x