You are here

function _tableofcontents_process in Table of Contents 6.3

Same name and namespace in other branches
  1. 7 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.

@param[in] $delta The filter number @param[in] $format The format number @param[in] $text The text to filter

3 calls to _tableofcontents_process()
tableofcontents_filter in ./tableofcontents.module
Implementation of hook_filter().
tableofcontents_nodeapi in ./tableofcontents.module
Implementation of hook_nodeapi
_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.

File

./tableofcontents.pages.inc, line 892
Applies the filter functions.

Code

function _tableofcontents_process($delta, $format, $text) {
  return _tableofcontents_replace_toc($delta, $format, $text);
}