function js_injector_help in JS injector 7
Same name and namespace in other branches
- 8 js_injector.module \js_injector_help()
- 6.2 js_injector.module \js_injector_help()
- 6 js_injector.module \js_injector_help()
- 7.2 js_injector.module \js_injector_help()
Implements hook_help().
File
- ./
js_injector.module, line 29 - 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_help($path, $arg) {
$output = '';
switch ($path) {
case 'admin/config/modules#description':
$output .= t('Allows administrators to inject JS into the page output based on configurable rules.');
break;
case 'admin/config/development/js-injector':
$output .= '<p>' . t('Use JS injection rules to add small snippets of JS to the page output when specific criteria are met. For example, a simple rule could change the page background color at night or float a particular div to the right on node editing pages.') . '</p>';
break;
}
return $output;
}