You are here

function imageapi_optimize_processor_delete_form in Image Optimize (or ImageAPI Optimize) 7.2

Form builder; Form for deleting an image effect.

Parameters

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

$processor: Name of the image effect to remove.

See also

image_effect_delete_form_submit()

1 string reference to 'imageapi_optimize_processor_delete_form'
imageapi_optimize_menu in ./imageapi_optimize.module
Implements hook_menu().

File

./imageapi_optimize.admin.inc, line 466

Code

function imageapi_optimize_processor_delete_form($form, &$form_state, $pipeline, $processor) {
  $form_state['pipeline'] = $pipeline;
  $form_state['processor'] = $processor;
  $question = t('Are you sure you want to delete the @processor processor from the %pipeline pipeline?', array(
    '%pipeline' => $pipeline['label'],
    '@processor' => $processor['label'],
  ));
  return confirm_form($form, $question, 'admin/config/media/imageapi-optimize/edit/' . $pipeline['name'], '', t('Delete'));
}