You are here

function hook_access_handler_info in Access Control Kit 7

Registers object access handler classes with the access control kit module.

Return value

array An array whose keys are object access handler class names and whose values declare the properties of the handler that are needed by access control kit to attach the handler to an access scheme. The registered classes must implement the AccessControlKitHandlerInterface.

The properties of the handler are declared in an array as follows:

  • label: The human-readable name of the handler.
  • scheme types: An array listing the access scheme types that the handler supports, as defined by hook_access_scheme_info().
  • object types: An array listing the access-controllable object types that the handler supports, as defined by hook_access_info(). A value of 'fieldable entity' indicates that the handler supports all object types that are fieldable entities, as defined by hook_entity_info().

See also

access_handler_info()

hook_access_handler_info_alter()

4 functions implement hook_access_handler_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

access_access_handler_info in ./access.access.inc
Implements hook_access_handler_info().
access_test_access_handler_info in tests/access_test.module
Implements hook_access_handler_info().
ack_menu_access_handler_info in ack_menu/ack_menu.module
Implements hook_access_handler_info().
ack_node_access_handler_info in ack_node/ack_node.module
Implements hook_access_handler_info().
1 invocation of hook_access_handler_info()
access_handler_info in ./access.module
Returns information on available object access handlers.

File

./access.api.php, line 83
Hooks provided by the access control kit module.

Code

function hook_access_handler_info() {

  // Register the handler for the node "sticky" property.
  $info['ACKNodeSticky'] = array(
    'label' => t('Sticky'),
    'scheme types' => array(
      'boolean',
    ),
    'object types' => array(
      'node',
    ),
  );
  return $info;
}