function editor_menu in Editor 6
Same name and namespace in other branches
- 5 editor.module \editor_menu()
Implementation of hook_menu().
File
- ./
editor.module, line 58 - Extendable WYSIWYG editor @author Tj Holowaychuk <http://www.350designs.com/> @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.'),
'access' => user_access('administer editor'),
);
$items[] = array(
'path' => 'admin/editor/editor',
'title' => t('Editor'),
'callback' => 'editor_settings',
'access' => user_access('administer editor'),
);
}
return $items;
}