You are here

function js_injector_permission in JS injector 7

Same name and namespace in other branches
  1. 8 js_injector.module \js_injector_permission()
  2. 7.2 js_injector.module \js_injector_permission()

Implements hook_permission().

File

./js_injector.module, line 133
Allows administrators to inject JS into the page output based on configurable rules. Useful for adding simple JS tweaks without modifying a site's official theme.

Code

function js_injector_permission() {
  return array(
    'administer js injection' => array(
      'title' => t('Administer JS Injection'),
    ),
  );
}