You are here

function headinganchors_filter_tips in Table of Contents 6.2

Same name and namespace in other branches
  1. 5.2 headinganchors.module \headinganchors_filter_tips()
  2. 5 headinganchors.module \headinganchors_filter_tips()

Implementation of hook_filter_tips().

File

./headinganchors.module, line 36
This is a module which takes headings and adds id attributes to them to allow them to be linked to in a URL. The following rules are used to create an attribute:

Code

function headinganchors_filter_tips($format, $long = FALSE) {
  if ($long) {
    return t('Every instance heading tags will be modified to include an id attribute for anchor linking.');
  }
  else {
    return t('Insert heading anchors automatically.');
  }
}