You are here

function better_formats_menu in Better Formats 7

Same name and namespace in other branches
  1. 6.2 better_formats.module \better_formats_menu()
  2. 6 better_formats.module \better_formats_menu()

Implements hook_menu().

File

./better_formats.module, line 37
Enhances Drupal's core text format settings.

Code

function better_formats_menu() {
  $items = array();
  $items['admin/config/content/formats/settings'] = array(
    'title' => 'Settings',
    'description' => 'Manage text formats',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'better_formats_admin_settings_form',
    ),
    'access arguments' => array(
      'administer filters',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
    'file' => 'better_formats.admin_settings.inc',
  );

  /*
  $items['admin/config/content/formats/defaults'] = array(
    'title' => 'Defaults',
    'description' => 'Manage text formats',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('better_formats_defaults_admin_form'),
    'access arguments' => array('administer filters'),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
    'file' => 'better_formats.admin_defaults.inc',
  );
  */
  return $items;
}