You are here

function filter_menu in Drupal 6

Same name and namespace in other branches
  1. 4 modules/filter.module \filter_menu()
  2. 5 modules/filter/filter.module \filter_menu()
  3. 7 modules/filter/filter.module \filter_menu()

Implementation of hook_menu().

File

modules/filter/filter.module, line 68
Framework for handling filtering of content.

Code

function filter_menu() {
  $items['admin/settings/filters'] = array(
    'title' => 'Input formats',
    'description' => 'Configure how content input by users is filtered, including allowed HTML tags. Also allows enabling of module-provided filters.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'filter_admin_overview',
    ),
    'access arguments' => array(
      'administer filters',
    ),
    'file' => 'filter.admin.inc',
  );
  $items['admin/settings/filters/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/settings/filters/add'] = array(
    'title' => 'Add input format',
    'page callback' => 'filter_admin_format_page',
    'access arguments' => array(
      'administer filters',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
    'file' => 'filter.admin.inc',
  );
  $items['admin/settings/filters/delete'] = array(
    'title' => 'Delete input format',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'filter_admin_delete',
    ),
    'access arguments' => array(
      'administer filters',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'filter.admin.inc',
  );
  $items['filter/tips'] = array(
    'title' => 'Compose tips',
    'page callback' => 'filter_tips_long',
    'access callback' => TRUE,
    'type' => MENU_SUGGESTED_ITEM,
    'file' => 'filter.pages.inc',
  );
  $items['admin/settings/filters/%filter_format'] = array(
    'type' => MENU_CALLBACK,
    'title callback' => 'filter_admin_format_title',
    'title arguments' => array(
      3,
    ),
    'page callback' => 'filter_admin_format_page',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'administer filters',
    ),
    'file' => 'filter.admin.inc',
  );
  $items['admin/settings/filters/%filter_format/edit'] = array(
    'title' => 'Edit',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
    'file' => 'filter.admin.inc',
  );
  $items['admin/settings/filters/%filter_format/configure'] = array(
    'title' => 'Configure',
    'page callback' => 'filter_admin_configure_page',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'administer filters',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
    'file' => 'filter.admin.inc',
  );
  $items['admin/settings/filters/%filter_format/order'] = array(
    'title' => 'Rearrange',
    'page callback' => 'filter_admin_order_page',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'administer filters',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
    'file' => 'filter.admin.inc',
  );
  return $items;
}