function _tableofcontents_process in Table of Contents 7
Same name and namespace in other branches
- 6.3 tableofcontents.pages.inc \_tableofcontents_process()
Transform the [toc ...] tags into the actual table of content.
This function parses the headers to determine the content of the table of content and then parses the [toc ...] tags.
It uses sub-functions in order to make them reusable by other parts such as the block implementation.
Parameters
$delta The filter number:
$format The format number:
$text The text to filter:
2 calls to _tableofcontents_process()
- tableofcontents_node_view in ./
tableofcontents.module - Implementation of hook_node_view
- _tableofcontents_block_view in tableofcontents_block/
tableofcontents_block.module - Create the block if user has permission and we are viewing a node and the node has enough data to generate a table of contents.
1 string reference to '_tableofcontents_process'
- tableofcontents_filter_info in ./
tableofcontents.module - Implementation of hook_filter_info().
File
- ./
tableofcontents.pages.inc, line 846 - Applies the filter functions.
Code
function _tableofcontents_process($text, $format, $filter = 0) {
return _tableofcontents_replace_toc($text, $format, $filter);
}