You are here

function maxlength_menu in Maxlength 5

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

File

./maxlength.module, line 26

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;
}