You are here

function collapse_text_preprocess_page in Collapse Text 7.2

Same name and namespace in other branches
  1. 8 collapse_text.module \collapse_text_preprocess_page()
  2. 6.2 collapse_text.module \collapse_text_preprocess_page()
  3. 6 collapse_text.module \collapse_text_preprocess_page()
  4. 2.0.x collapse_text.module \collapse_text_preprocess_page()

add the collapse.js file. in the past, there was a lot of awkward code to try and include this library conditionally. This was getting really broken, and causing all kinds of weird errors. This was suggested by jrockowitz in #947710. Since this has caused more problems than it is worth, I am adopting #1664952 by mstrelan, and just adding the library. Hopefully this will work better.

File

./collapse_text.module, line 594
collapse_text is an input filter that allows text to be collapsible

Code

function collapse_text_preprocess_page(&$variables) {
  drupal_add_library('system', 'drupal.collapse');
}