function lexicon_init in Lexicon 7
Same name and namespace in other branches
- 6 lexicon.module \lexicon_init()
Implements hook_init().
File
- ./
lexicon.module, line 487 - The Lexicon module is used to create lists of terms and definitions to use on a website and optionally mark those terms in the content of the website.
Code
function lexicon_init() {
// Check if marking of terms is enabled.
if (variable_get('lexicon_mark_terms', 0) == 1) {
// Load the lexicon.css on every page to minimally style marked terms.
drupal_add_css(drupal_get_path('module', 'lexicon') . '/css/lexicon.css');
}
}