function toc_filter_filter_info in TOC filter 7
Implements hook_filter_info().
File
- ./
toc_filter.module, line 43 - Converts header tags into a linked table of contents.
Code
function toc_filter_filter_info() {
if (module_exists('ctools')) {
$description = t("Converts <@header_tag> tags to a linked table of contents or jump menu with an optional title. (i.e [TOC:(faq|numbered|jump-menu|menu) (title)]", array(
'@header_tag' => variable_get('toc_filter_header_tag', 'h3'),
));
}
else {
$description = t("Converts <@header_tag> tags to a linked table of contents with an optional title. (i.e [TOC:(faq|numbered) (title)]", array(
'@header_tag' => variable_get('toc_filter_header_tag', 'h3'),
));
}
$filters['toc_filter'] = array(
'title' => t('Table of contents'),
'description' => $description,
'default settings' => array(),
'settings callback' => '_toc_filter_settings_callback',
'process callback' => '_toc_filter_process_callback',
'tips callback' => '_toc_filter_tips_callback',
);
return $filters;
}