You are here

function maxlength_menu in Maxlength 5.2

Same name and namespace in other branches
  1. 5 maxlength.module \maxlength_menu()
  2. 6 maxlength.module \maxlength_menu()

Implementation of hook_menu().

File

./maxlength.module, line 32

Code

function maxlength_menu($may_cache) {
  $items = array();
  if ($may_cache) {
  }
  else {
    $items[] = array(
      'path' => 'admin/settings/maxlength',
      'title' => t('Maxlength'),
      'description' => t('Set maximum length for body fields.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => '_maxlength_admin_settings',
      'access' => user_access(ADMINISTER_MAXLENGTH),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}