function _tableofcontents_replace_comments in Table of Contents 7.2
Same name and namespace in other branches
- 6.3 tableofcontents.pages.inc \_tableofcontents_replace_comments()
- 7 tableofcontents.pages.inc \_tableofcontents_replace_comments()
Replace <!-- tableofcontents {settings} --> and [[TOC {settings}]] with [toc {settings}]
1 string reference to '_tableofcontents_replace_comments'
- _tableofcontents_filter_prepare in ./
tableofcontents.filters.inc - Prepare the text for the table of content.
File
- ./
tableofcontents.filters.inc, line 48 - Table of Contents - Versatile system for generating Tables of Contents for fields - filters.
Code
function _tableofcontents_replace_comments($matches) {
return '[toc ' . $matches[1] . ']';
}