You are here

function collapse_text_filter_tips in Collapse Text 6

Same name and namespace in other branches
  1. 5 collapse_text.module \collapse_text_filter_tips()
  2. 6.2 collapse_text.module \collapse_text_filter_tips()

Implementation of hook_filter_tips().

File

./collapse_text.module, line 12
collapse_text is an input filter that allows text to be collapsible

Code

function collapse_text_filter_tips($delta, $format, $long = false) {
  if ($long) {
    return t('Enclose sections of text in [collapse] and [/collapse] to ' + 'turn them into collapsible sections.  If you use [collapse collapsed] ' + 'and [/collapse], the section will start out collapsed. You may ' + 'specify a title with [collapse title=some title] ' + '(or [collapse collapsed title=some title]). If no title is specified, ' + 'the title will be taken from the first header ' + '(<h1>, <h2>, <h3>, ...) found. In the absence of a ' + 'header, a default title is used.');
  }
  else {
    return t('Make collapsible text blocks using [collapse] and [/collapse].');
  }
}