function theme_toc_filter_back_to_top in TOC filter 7
Same name and namespace in other branches
- 6 toc_filter.module \theme_toc_filter_back_to_top()
Format back to top anchor link.
1 theme call to theme_toc_filter_back_to_top()
- _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 253 - Converts header tags into a linked table of contents.
Code
function theme_toc_filter_back_to_top($variables) {
$class = $variables['class'] ? ' ' . $variables['class'] : '';
return '<div class="toc-filter-back-to-top' . $class . '"><a href="#top">' . t('Back to top') . '</a></div>';
}