You are here

function access_grant_add in Access Control Kit 7

Menu page callback; add an access grant for a given scheme.

Parameters

object $scheme: The access scheme in which to create a new grant.

Return value

array A form for adding a new access grant.

1 string reference to 'access_grant_add'
access_menu in ./access.module
Implements hook_menu().

File

./access_grants.admin.inc, line 386
Access grants administrative UI for the access control kit module.

Code

function access_grant_add($scheme) {
  $grant = entity_get_controller('access_grant')
    ->create(array(
    'scheme' => $scheme->machine_name,
  ));
  return drupal_get_form('access_grant_form', $grant);
}