function imageapi_optimize_pipeline_revert_form_submit in Image Optimize (or ImageAPI Optimize) 7.2
Submit handler to convert an overridden pipeline to its default.
File
- ./
imageapi_optimize.admin.inc, line 373
Code
function imageapi_optimize_pipeline_revert_form_submit($form, &$form_state) {
drupal_set_message(t('The %pipeline pipeline has been reverted to its defaults.', array(
'%pipeline' => $form_state['pipeline']['label'],
)));
imageapi_optimize_default_pipeline_revert($form_state['pipeline']);
$form_state['redirect'] = 'admin/config/media/imageapi-optimize';
}