You are here

function syntaxhighlighter_permission in Syntax Highlighter 7

Same name and namespace in other branches
  1. 7.2 syntaxhighlighter.module \syntaxhighlighter_permission()

Implements hook_permission().

1 call to syntaxhighlighter_permission()
syntaxhighlighter_settings_form in ./syntaxhighlighter.admin.inc
An admin form to specify which language to support for highlighting

File

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

Code

function syntaxhighlighter_permission() {
  return array(
    SYNTAXHIGHLIGHTER_PHP_PERMISSION => array(
      'title' => t('Use PHP for syntaxhighlighter js/css code inject control'),
      'restrict access' => TRUE,
    ),
  );
}