function tableofcontents_menu in Table of Contents 5.2
Implementation of hook_menu()
We have to load the JS here since we are now caching the filter results
File
- ./
tableofcontents.module, line 30 - This is a filter module to generate a collapsible jquery enabled mediawiki style table of contents based on <h[1-6]> tags. Transforms header tags into named anchors.
Code
function tableofcontents_menu($may_cache) {
if (!$may_cache) {
drupal_add_js(drupal_get_path('module', 'tableofcontents') . '/tableofcontents.js');
drupal_add_css(drupal_get_path('module', 'tableofcontents') . '/tableofcontents.css');
}
}