You are here

function skinr_context_ui_revert_confirm in Skinr 7.2

Same name and namespace in other branches
  1. 8.2 skinr_context/skinr_context_ui.admin.inc \skinr_context_ui_revert_confirm()

Form builder for the skinr settings revert confirmation form.

Parameters

$skin: Tje skin configuration object to delete.

1 string reference to 'skinr_context_ui_revert_confirm'
skinr_context_ui_menu in skinr_context/skinr_context_ui.module
Implements hook_menu().

File

skinr_context/skinr_context_ui.admin.inc, line 527
Admin page callbacks for the Skinr Context UI module.

Code

function skinr_context_ui_revert_confirm($form, &$form_state, $group) {
  $form['#group'] = $group;

  // Always provide skin configuration gid in the same form key as in the skin
  // configuration group edit form.
  $form['gid'] = array(
    '#type' => 'value',
    '#value' => $group->gid,
  );
  return confirm_form($form, t('Are you sure you want to permanently remove any customizations made to this skin configuration group?'), isset($_GET['destination']) ? $_GET['destination'] : 'admin/structure/skinr/list/groups', t('This action cannot be undone.<br />Type: %type<br />Element: %element<br />Group: %group', array(
    '%type' => $group->module,
    '%element' => $group->element,
    '%group' => $group->title,
  )), t('Revert'), t('Cancel'));
}