function access_grant_edit in Access Control Kit 7
Menu page callback; edit an access grant.
Parameters
object $grant: The access grant to edit.
Return value
array The access grant form.
1 string reference to 'access_grant_edit'
- access_menu in ./
access.module - Implements hook_menu().
File
- ./
access_grants.admin.inc, line 400 - Access grants administrative UI for the access control kit module.
Code
function access_grant_edit($grant) {
$scheme = access_scheme_machine_name_load($grant->scheme);
drupal_set_title(t('<em>Edit @scheme for</em> @grant', array(
'@scheme' => $scheme->name,
'@grant' => entity_label('access_grant', $grant),
)), PASS_THROUGH);
return drupal_get_form('access_grant_form', $grant);
}