You are here

function _shib_auth_delete_rule in Shibboleth Authentication 6.3

This function lets the admin to delete an existing rule

Parameters

id rule identifier:

1 string reference to '_shib_auth_delete_rule'
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.module, line 625
This is a Shibboleth authentication module.

Code

function _shib_auth_delete_rule($id) {
  db_query("DELETE FROM {shib_auth} WHERE id = %d", array(
    $id,
  ));
  drupal_set_message('Rule <span style="font-weight: bold;">#' . $id . '</span> has been deleted.', 'warning');
  drupal_goto('admin/user/shib_auth/rules');
}