function customfilter_filter in Custom filter 5
Same name and namespace in other branches
- 6.2 customfilter.module \customfilter_filter()
- 6 customfilter.module \customfilter_filter()
Implements hook_filter().
File
- ./
customfilter.module, line 11
Code
function customfilter_filter($op, $delta = 0, $format = -1, $text = '') {
switch ($op) {
case 'list':
return _customfilter_filter_list();
case 'no cache':
return !_customfilter_filter_cache($delta);
case 'description':
return _customfilter_filter_desc($delta);
case 'prepare':
return $text;
case 'process':
return _customfilter_process($delta, $format, $text);
default:
return $text;
}
}