function _tableofcontents_replace_comments in Table of Contents 6.3
Same name and namespace in other branches
- 7.2 tableofcontents.filters.inc \_tableofcontents_replace_comments()
- 7 tableofcontents.pages.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 27 - Applies the filter functions.
Code
function _tableofcontents_replace_comments($matches) {
return '[toc ' . $matches[1] . ']';
}