You are here

function hook_admin_select_info in Administration Menu select 6

Same name and namespace in other branches
  1. 7 admin_select.api.php \hook_admin_select_info()

Implements hook_admin_select_info().

Return value

An associative array of Administration Menu modules provided by this module, keyed by tag name with the following properties:

  • title: The human readable name of the module.
  • access arguments: An array of arguments for user_access().
  • suppress callback: The modules suppress function.
  • file: (optional) The include file where the callback function resides.
1 function implements hook_admin_select_info()

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

admin_select_get_admin_select_info in ./admin_select.module
1 invocation of hook_admin_select_info()
admin_select_get_admin_select_info in ./admin_select.module

File

./admin_select.api.php, line 17

Code

function hook_admin_select_info() {
  $info = array();
  $info['MYMODULE'] = array(
    'title' => t('My Module'),
    'access arguments' => array(
      'access MYMODULE',
    ),
    'suppress callback' => 'MYMODULE_suppress',
    'file' => drupal_get_path('module', 'MYMODULE') . '/MYMODULE.admin_select.inc',
  );
  return $info;
}