? collapse_text_init_patch.txt Index: collapse_text.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/collapse_text/collapse_text.module,v retrieving revision 1.4.2.1 diff -u -p -r1.4.2.1 collapse_text.module --- collapse_text.module 15 Dec 2008 15:00:33 -0000 1.4.2.1 +++ collapse_text.module 15 Dec 2008 15:18:34 -0000 @@ -72,6 +72,7 @@ function _collapse_text_replace_callback $title = strip_tags($h_matches[1]); if (empty($title)) { + // Added call to t() per #256176 yngens $title = t('Use the arrow to expand or collapse this section'); } @@ -89,4 +90,17 @@ function _collapse_text_replace_callback return drupal_render($render_array); } -?> +/** + * Implementation of hook_init(). + * + * Due to caching issues, `collapse.js` is not properly added to + * a page when the cached version is used. This adds `collapse.js` + * to every page. This is not really the right way to solve the + * problem, but I don't know that Drupal provides us with the + * ability to attach CSS files to input filter caches. + * + * Per #256354 and #231529. Thanks rolf, sza, jippie1948, Justyn + */ +function collapse_text_init() { + drupal_add_js('misc/collapse.js', 'core'); +}