function theme_toc_filter in TOC filter 7
Same name and namespace in other branches
- 6 toc_filter.module \theme_toc_filter()
Format TOC filter.
1 theme call to theme_toc_filter()
- _toc_filter_process_callback in ./
toc_filter.module - TOC filter processor callback: Convert's <h2> to a linked table of contents.
File
- ./
toc_filter.module, line 261 - Converts header tags into a linked table of contents.
Code
function theme_toc_filter($variables) {
$output = '<div class="toc-filter toc-filter-' . $variables['format'] . '">';
$output .= '<div class="toc-filter-content">' . $variables['content'] . '</div>';
$output .= '</div>';
return $output;
}