You are here

function _toc_filter_tips_callback in TOC filter 7

TOC filter tips.

1 string reference to '_toc_filter_tips_callback'
toc_filter_filter_info in ./toc_filter.module
Implements hook_filter_info().

File

./toc_filter.module, line 65
Converts header tags into a linked table of contents.

Code

function _toc_filter_tips_callback($delta, $format, $long = FALSE) {
  if (module_exists('ctools')) {
    return t("Adding [TOC:(faq|ol|number|ul|bullet|jump-menu|menu) (title)] will generate a table of contents or jump menu linked to all the <@header_tag> tags with an optional title.", array(
      "@header_tag" => variable_get('toc_filter_header_tag', 'h3'),
    ));
  }
  else {
    return t("Adding [TOC:(faq|ol|number|ul|bullet) (title)] will generate a table of contents linked to all the <@header_tag> tags with an optional title.", array(
      "@header_tag" => variable_get('toc_filter_header_tag', 'h3'),
    ));
  }
}