You are here

function skinr_rule_delete_confirm in Skinr 6.2

Menu callback; displays the delete confirmation for a skinr page rule.

1 string reference to 'skinr_rule_delete_confirm'
skinr_ui_menu in ./skinr_ui.module
Implementation of hook_menu().

File

./skinr_ui.rules.inc, line 169
Admin page callbacks for the skinr module.

Code

function skinr_rule_delete_confirm(&$form_state, $rid) {
  $form['rid'] = array(
    '#type' => 'value',
    '#value' => $rid,
  );
  $rule = skinr_rule_load($rid);
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $rule->title,
  )), isset($_GET['destination']) ? $_GET['destination'] : 'admin/build/skinr/rules', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}