function tableofcontents_filter_prepare in Table of Contents 7.2
Implements hook_filter_FILTER_prepare(). (sort of)
1 string reference to 'tableofcontents_filter_prepare'
- _tableofcontents_filter_info in ./
tableofcontents.filters.inc - Implements hook_filter_info().
File
- ./
tableofcontents.module, line 49 - 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_filter_prepare($text, $filter, $format, $langcode, $cache, $cache_id) {
module_load_include('filter.inc', 'tableofcontents');
return _tableofcontents_filter_prepare($text, $filter, $format, $langcode, $cache, $cache_id);
}