function _tableofcontents_replace_comments in Table of Contents 7
Same name and namespace in other branches
- 6.3 tableofcontents.pages.inc \_tableofcontents_replace_comments()
- 7.2 tableofcontents.filters.inc \_tableofcontents_replace_comments()
Replace a <!-- tableofcontents ... --> comment with [toc ...]
1 string reference to '_tableofcontents_replace_comments'
- _tableofcontents_prepare in ./
tableofcontents.pages.inc - Prepare the text for the table of content.
File
- ./
tableofcontents.pages.inc, line 25 - Applies the filter functions.
Code
function _tableofcontents_replace_comments($matches) {
return '[toc ' . $matches[1] . ']';
}