function filter_menu

Implements hook_menu().

File

drupal/modules/filter/filter.module, line 88
Framework for handling the filtering of content.

Code

function filter_menu() {
  $items['filter/tips'] = array(
    'title' => 'Compose tips',
    'page callback' => 'filter_tips_long',
    'access callback' => TRUE,
    'type' => MENU_SUGGESTED_ITEM,
    'file' => 'filter.pages.inc',
  );
  $items['filter/tips/%filter_format'] = array(
    'title' => 'Compose tips',
    'page callback' => 'filter_tips_long',
    'page arguments' => array(
      2,
    ),
    'access callback' => 'filter_access',
    'access arguments' => array(
      2,
    ),
    'file' => 'filter.pages.inc',
  );
  $items['admin/config/content/formats'] = array(
    'title' => 'Text 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/config/content/formats/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/content/formats/add'] = array(
    'title' => 'Add text format',
    'page callback' => 'filter_admin_format_page',
    'access arguments' => array(
      'administer filters',
    ),
    'type' => MENU_LOCAL_ACTION,
    'weight' => 1,
    'file' => 'filter.admin.inc',
  );
  $items['admin/config/content/formats/%filter_format'] = array(
    'title callback' => 'filter_admin_format_title',
    'title arguments' => array(
      4,
    ),
    'page callback' => 'filter_admin_format_page',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'administer filters',
    ),
    'file' => 'filter.admin.inc',
  );
  $items['admin/config/content/formats/%filter_format/disable'] = array(
    'title' => 'Disable text format',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'filter_admin_disable',
      4,
    ),
    'access callback' => '_filter_disable_format_access',
    'access arguments' => array(
      4,
    ),
    'file' => 'filter.admin.inc',
  );
  return $items;
}