You are here

function editor_menu in Editor 5

Same name and namespace in other branches
  1. 6 editor.module \editor_menu()

Implementation of hook_menu().

File

./editor.module, line 102
Extendable WYSIWYG editor @author Tj Holowaychuk <tj@vision-media.ca> @link http://vision-media.ca @package Editor

Code

function editor_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/editor',
      'title' => t('Text Editor'),
      'description' => t('Visual text editor options and configuration.'),
      'callback' => 'editor_settings_overview',
      'access' => user_access('administer site configuration'),
    );
    $items[] = array(
      'path' => 'admin/editor/visibility',
      'title' => t('Visibility'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'editor_settings_visibility',
      'access' => user_access('administer editor visibility'),
    );
    $items[] = array(
      'path' => 'admin/editor/profiles',
      'title' => t('Profiles'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'editor_settings_profiles',
      'access' => user_access('administer editor profiles'),
    );
  }
  return $items;
}