function flashnode_filter in Flash Node 5.3
Same name and namespace in other branches
- 5.6 flashnode.module \flashnode_filter()
- 5.2 flashnode.module \flashnode_filter()
- 6.3 flashnode.module \flashnode_filter()
- 6.2 flashnode.module \flashnode_filter()
Implementation of hook_filter()
File
- ./
flashnode.module, line 801
Code
function flashnode_filter($op, $delta = 0, $format = -1, $text = '') {
switch ($op) {
case 'list':
return array(
0 => t('Flash node filter'),
);
case 'description':
return t('Add Flash from a flash node to your posts using a flash node macro.');
case 'process':
foreach (flashnode_get_macros($text) as $unexpanded_macro => $macro) {
$expanded_macro = flashnode_content($macro, $format);
$text = str_replace($unexpanded_macro, $expanded_macro, $text);
}
return $text;
default:
return $text;
}
}