function imageapi_optimize_pipeline_delete_form_submit in Image Optimize (or ImageAPI Optimize) 7.2
Submit handler to delete an image pipeline.
File
- ./
imageapi_optimize.admin.inc, line 347
Code
function imageapi_optimize_pipeline_delete_form_submit($form, &$form_state) {
$pipeline = $form_state['pipeline'];
imageapi_optimize_pipeline_delete($pipeline, $form_state['values']['replacement']);
drupal_set_message(t('Pipeline %name was deleted.', array(
'%name' => $pipeline['label'],
)));
$form_state['redirect'] = 'admin/config/media/imageapi-optimize';
}