1 filter.module filter_menu()

Implements hook_menu().

File

core/modules/filter/filter.module, line 67
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_CALLBACK,
    'file' => 'filter.pages.inc',
  );
  $items['editor/dialog/link/%filter_format'] = array(
    'title' => 'Edit image',
    'page callback' => 'backdrop_get_form',
    'page arguments' => array('filter_format_editor_link_form', 3),
    'access callback' => 'filter_dialog_access',
    'access arguments' => array(3, 'link'),
    'theme callback' => 'ajax_base_page_theme',
    'type' => MENU_CALLBACK,
    'file' => 'filter.pages.inc',
  );
  $items['editor/dialog/image/%filter_format'] = array(
    'title' => 'Edit image',
    'page callback' => 'backdrop_get_form',
    'page arguments' => array('filter_format_editor_image_form', 3),
    'access callback' => 'filter_dialog_access',
    'access arguments' => array(3, 'image'),
    'theme callback' => 'ajax_base_page_theme',
    'type' => MENU_CALLBACK,
    '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 editors and formats',
    'description' => 'Configure WYSIWYG and text editors on the site. Restrict or allow certain HTML tags to be used in content.',
    'page callback' => 'backdrop_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 text formats',
    '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),
    'load arguments' => array(TRUE),
    '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/enable'] = array(
    'title' => 'Enable text format',
    'load arguments' => array(TRUE),
    'page callback' => 'filter_admin_enable',
    'page arguments' => array(4),
    'access arguments' => array('administer filters'),
    'type' => MENU_CALLBACK,
    'file' => 'filter.admin.inc',
  );
  $items['admin/config/content/formats/%filter_format/disable'] = array(
    'title' => 'Disable text format',
    'page callback' => 'backdrop_get_form',
    'page arguments' => array('filter_admin_disable', 4),
    'access callback' => '_filter_disable_format_access',
    'access arguments' => array(4),
    'file' => 'filter.admin.inc',
  );
  $items['admin/config/content/formats/%filter_format/filter-settings/%'] = array(
    'title callback' => 'filter_admin_format_title',
    'title arguments' => array(4),
    'page callback' => 'backdrop_get_form',
    'page arguments' => array('filter_admin_format_filter_settings_form', 4, 6),
    'access arguments' => array('administer filters'),
    'file' => 'filter.admin.inc',
  );
  return $items;
}