You are here

function shib_auth_edit_rule in Shibboleth Authentication 5.3

Same name and namespace in other branches
  1. 6.4 shib_auth_roles_forms.inc \shib_auth_edit_rule()
  2. 6.3 shib_auth.module \shib_auth_edit_rule()
  3. 7.4 shib_auth_roles_forms.inc \shib_auth_edit_rule()

Rule edit form basedon new rule form

Return value

array rule edit form array

1 call to shib_auth_edit_rule()
shib_auth_clone_rule in ./shib_auth_admin.inc
Clone an exists rule form based on new rule add form
1 string reference to 'shib_auth_edit_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_admin.inc, line 146
Generate the administration form of the Shibboleth authentication module

Code

function shib_auth_edit_rule() {
  $rule_id = arg(5);
  $rule = db_query("SELECT * FROM {shib_auth} WHERE id = %d", array(
    $rule_id,
  ));
  $exists_rule = db_fetch_array($rule);
  return shib_auth_new_rule_form($exists_rule);
}