You are here

function autoassignrole_menu in Auto Assign Role 5.2

Same name and namespace in other branches
  1. 5 autoassignrole.module \autoassignrole_menu()
  2. 6.2 autoassignrole.module \autoassignrole_menu()
  3. 6 autoassignrole.module \autoassignrole_menu()
  4. 7.2 autoassignrole.module \autoassignrole_menu()
  5. 7 autoassignrole.module \autoassignrole_menu()

Implementation of hook_menu().

Return value

array

File

./autoassignrole.module, line 16

Code

function autoassignrole_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/user/autoassignrole',
      'title' => t('Auto assign role'),
      'description' => t('Auto Assign Role Settings.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'autoassignrole_settings',
      'access' => user_access('administer autoassignrole'),
    );
  }
  return $items;
}