function typogrify_filter in Typogrify 6
Same name and namespace in other branches
- 5 typogrify.module \typogrify_filter()
Implementation of hook_filter().
File
- ./
typogrify.module, line 13 - typogrify.module Typogrify: Brings typographical refinemnts to drupal
Code
function typogrify_filter($op, $delta = 0, $format = -1, $text = '') {
switch ($op) {
case 'list':
return array(
t('Typogrify'),
);
case 'description':
return t('Adds typographic refinements.');
case 'settings':
return _typogrify_settings($format);
case 'process':
return _typogrify_process($text, $format);
default:
return $text;
}
}