You are here

function editor_menu_alter in Editor 7

Implements hook_menu_alter().

File

./editor.module, line 70
Allows rich text fields to be edited using WYSIWYG client-side editors.

Code

function editor_menu_alter(&$items) {

  // Modify the formats page title and description to reflect the addition of
  // WYSIWYG editors.
  if (!empty($items['admin/config/content/formats'])) {
    $items['admin/config/content/formats']['title'] = 'Text editors and formats';
    $items['admin/config/content/formats']['description'] = 'Configure WYSIWYG and text editors on the site. Restrict or allow certain HTML tags to be used in content.';
  }

  // Disable tips for individual filter formats.
  if (!empty($items['filter/tips/%filter_format'])) {
    $items['filter/tips/%filter_format']['access callback'] = FALSE;
  }
}