You are here

function better_field_descriptions_menu in Better Field Descriptions 7

Implements hook_menu().

File

./better_field_descriptions.module, line 21
Module file for the Better field descriptions module.

Code

function better_field_descriptions_menu() {
  $items = array();
  $items['admin/config/content/better_field_descriptions'] = array(
    'title' => 'Better field descriptions',
    'description' => 'Administer Better field descriptions.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'better_field_descriptions_admin_settings_form',
    ),
    'file' => 'better_field_descriptions.admin.inc',
    'access arguments' => array(
      'administer better field descriptions',
    ),
  );
  $items['admin/config/content/better_field_descriptions/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  );
  $items['admin/config/content/better_field_descriptions/bundles'] = array(
    'title' => 'Bundles',
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
    'file' => 'better_field_descriptions.admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'better_field_descriptions_fields_form',
    ),
    'access arguments' => array(
      'add better descriptions to fields',
    ),
  );
  return $items;
}