function headinganchors_filter_tips in Table of Contents 5
Same name and namespace in other branches
- 5.2 headinganchors.module \headinganchors_filter_tips()
- 6.2 headinganchors.module \headinganchors_filter_tips()
Implementation of hook_filter_tips().
File
- ./
headinganchors.module, line 38 - This is a module which takes <h2> and <h3> 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 of second and third level headings (<h2> and <h3>) will be modified to include an id attribute for anchor linking.');
}
else {
return t('Insert heading anchors automatically.');
}
}