You are here

function syntaxhighlighter_menu in Syntax Highlighter 7

Same name and namespace in other branches
  1. 6.2 syntaxhighlighter.module \syntaxhighlighter_menu()
  2. 6 syntaxhighlighter.module \syntaxhighlighter_menu()
  3. 7.2 syntaxhighlighter.module \syntaxhighlighter_menu()

Menu for admin settings page

File

./syntaxhighlighter.module, line 47
Syntax highlight code using the Syntaxhighlighter javascript library. See http://alexgorbatchev.com/wiki/SyntaxHighlighter

Code

function syntaxhighlighter_menu() {
  $items['admin/config/content/syntaxhighlighter'] = array(
    'title' => 'Syntax highlighter',
    'description' => 'Configure syntax highlighter',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'syntaxhighlighter_settings_form',
    ),
    'access arguments' => array(
      'administer modules',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'syntaxhighlighter.admin.inc',
  );
  return $items;
}