function css_injector_help in CSS Injector 6
Same name and namespace in other branches
- 7.2 css_injector.module \css_injector_help()
- 7 css_injector.module \css_injector_help()
Implementation of hook_help().
File
- ./
css_injector.module, line 13 - Allows administrators to inject CSS into the page output based on configurable rules. Useful for adding simple CSS tweaks without modifying a site's official theme.
Code
function css_injector_help($path, $arg) {
$output = '';
switch ($path) {
case 'admin/settings/modules#description':
$output .= t('Allows administrators to inject CSS into the page output based on configurable rules.');
break;
case 'admin/settings/css_injector':
$output .= '<p>' . t('Use CSS injection rules to add small snippets of CSS 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>';
$output .= '<p>' . t('An important point to keep in mind is that in Drupal, themes always get last crack at display. Theme CSS is applied after modules. That means themes can and will override CSS put into play by CSS Injector module. If you want to override CSS that a theme is already applying, use CSS rules the way they were intended -- higher specificity rules, or the !important flag.') . '</p>';
break;
}
return $output;
}