You are here

function _shib_auth_rule_delete_confirm_form in Shibboleth Authentication 6.4

Same name and namespace in other branches
  1. 7.4 shib_auth_roles_forms.inc \_shib_auth_rule_delete_confirm_form()

This is the confirmation form for deleting a rule

1 string reference to '_shib_auth_rule_delete_confirm_form'
shib_auth_menu in ./shib_auth.module
Generate the menu element to access the Shibboleth authentication module's administration page @returns HTML text of the administer menu element

File

./shib_auth_roles_forms.inc, line 67
Roles manager forms.

Code

function _shib_auth_rule_delete_confirm_form(&$form_state, $id) {
  $desc = t("The rule with id %id will be deleted permanently!", array(
    '%id' => $id,
  ));

  // Make sure the form redirects in the end
  $form['destination'] = array(
    '#type' => 'hidden',
    '#value' => 'admin/user/shib_auth/rules',
  );
  return confirm_form($form, filter_xss($desc), 'admin/user/shib_auth/rules');
}