You are here

function cloud_zoom_admin_preset_revert_confirm in Cloud Zoom 6

Revert preset confirm form

1 string reference to 'cloud_zoom_admin_preset_revert_confirm'
cloud_zoom_menu in ./cloud_zoom.module
Implementation of hook_menu().

File

./cloud_zoom.admin.inc, line 378
This file contains al the admin-only function

Code

function cloud_zoom_admin_preset_revert_confirm(&$form_state, $preset) {

  // We're ok to continue - create a form and store the preset
  $form = array();
  $form['#original_preset'] = $preset;

  // Return the form through the confirm_form function
  return confirm_form($form, t('Are you sure you want to revert the Cloud Zoom Preset %preset?', array(
    '%preset' => $preset['name'],
  )), 'admin/settings/cloudzoom', t('Reverting a preset cannot be undone'), t('Delete'), t('Cancel'));
}