function collapse_text_preprocess_page in Collapse Text 8
Same name and namespace in other branches
- 6.2 collapse_text.module \collapse_text_preprocess_page()
- 6 collapse_text.module \collapse_text_preprocess_page()
- 7.2 collapse_text.module \collapse_text_preprocess_page()
- 2.0.x collapse_text.module \collapse_text_preprocess_page()
Implements hook_preprocess_page().
Add the collapse.js file.
File
- ./
collapse_text.module, line 49 - It is an input filter that allows text to be collapsible.
Code
function collapse_text_preprocess_page(&$variables) {
$variables['#attached']['library'][] = 'core/drupal.form';
}