function emogrifier_filter in Emogrifier 6
Implements hook_filter().
File
- ./
emogrifier.module, line 36
Code
function emogrifier_filter($op, $delta = 0, $format = -1, $text = '', $cache_id = 0) {
switch ($op) {
case 'list':
return array(
t('Emogrifier'),
);
case 'no cache':
return FALSE;
case 'description':
return t('Converts stylesheet rules to inline style attributes.');
case 'process':
return _emogrifier_process($text);
case 'settings':
return _emogrifier_filter_settings($delta, $format);
default:
return $text;
}
}