You are here

function pagerer_pane_theme_reset_form in Pagerer 7

Pane level settings reset form.

1 string reference to 'pagerer_pane_theme_reset_form'
pagerer_menu in ./pagerer.module
Implements hook_menu().

File

./pagerer.admin.inc, line 744
Pagerer administration

Code

function pagerer_pane_theme_reset_form($form, &$form_state) {
  $preset_name = $form_state['build_info']['args'][0];
  $pane = $form_state['build_info']['args'][1];
  $preset = _pagerer_get_preset($preset_name);
  $theme_name = $preset[$pane . '_pane']['theme_name'];
  return confirm_form($form, t('Reset theme variables'), _PAGERER_CONFIG_PATH . '/edit/' . $preset_name, t('Are you sure you want to reset %pane pane of preset %preset to %theme default theme variables?', array(
    '%preset' => $preset_name,
    '%pane' => $pane,
    '%theme' => $theme_name,
  )), t('Reset'), t('Cancel'));
}