You are here

function auto_username_menu in Automatic User Names 5

Same name and namespace in other branches
  1. 6 auto_username.module \auto_username_menu()
  2. 7 auto_username.module \auto_username_menu()

Implementation of hook_menu().

File

./auto_username.module, line 18

Code

function auto_username_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/user/auto-username',
      'title' => t('Username rules'),
      'description' => t('Configure the way that usernames are automatically generated.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'auto_username_configuration',
      ),
      'access' => user_access('configure username patterns'),
    );
  }
  return $items;
}