You are here

function better_formats_menu in Better Formats 6

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

Implementation of hook_menu().

File

./better_formats.module, line 44
Enhances Drupal's core input format settings.

Code

function better_formats_menu() {
  $items = array();
  $items['admin/settings/filters/settings'] = array(
    'title' => 'Settings',
    'description' => 'Manage input formats',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'better_formats_settings_admin_form',
    ),
    'access arguments' => array(
      'administer filters',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
    'file' => 'better_formats_settings.admin.inc',
  );
  $items['admin/settings/filters/defaults'] = array(
    'title' => 'Defaults',
    'description' => 'Manage input 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_defaults.admin.inc',
  );
  return $items;
}