You are here

function customfilter_filter_tips in Custom filter 6

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

Implements hook_filter_tips().

File

./customfilter.module, line 82
Allows the users with the right permission to define custom filters.

Code

function customfilter_filter_tips($delta, $format, $long = FALSE) {
  $col = $long ? 'longtip' : 'shorttip';
  $filters = _customfilter_get_filters();
  return isset($filters[$delta][$col]) ? $filters[$delta][$col] : '';
}