You are here

function skinr_context_ui_group_delete_confirm in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 skinr_context/skinr_context_ui.edit.inc \skinr_context_ui_group_delete_confirm()

Form builder for the skinr settings group delete confirmation form.

Parameters

$group: Skinr settings group object.

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

File

skinr_context/skinr_context_ui.edit.inc, line 152
Page callbacks for the Skinr Context UI module related to editing skins and groups.

Code

function skinr_context_ui_group_delete_confirm($form, &$form_state, $group) {
  $form['#group'] = $group;
  $form['gid'] = array(
    '#type' => 'value',
    '#value' => $group->gid,
  );
  return confirm_form($form, t('Are you sure you want to delete this skin settings group?'), isset($_GET['destination']) ? $_GET['destination'] : 'admin/structure/skinr/edit/' . $group->module . '/' . $group->element, t('This action cannot be undone.<br />Module: %module<br />Element: %element<br />Group: %group', array(
    '%module' => $group->module,
    '%element' => $group->element,
    '%group' => $group->title,
  )), t('Delete'), t('Cancel'));
}