You are here

function imageapi_optimize_pipeline_revert_form in Image Optimize (or ImageAPI Optimize) 7.2

Confirmation form to revert a database pipeline to its default.

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

File

./imageapi_optimize.admin.inc, line 358

Code

function imageapi_optimize_pipeline_revert_form($form, &$form_state, $pipeline) {
  $form_state['pipeline'] = $pipeline;
  return confirm_form($form, t('Revert the %pipeline pipeline?', array(
    '%pipeline' => $pipeline['label'],
  )), 'admin/config/media/imageapi-optimize', t('Reverting this pipeline will delete the customized settings and restore the defaults provided by the @module module.', array(
    '@module' => $pipeline['module'],
  )), t('Revert'), t('Cancel'));
}