function oembed_filter in oEmbed 6.0
Implementation of hook_filter().
File
- ./
oembed.module, line 31 - Input filter that enhances oEmbed enabled URL:s with extra content
Code
function oembed_filter($op, $delta = 0, $format = -1, $text = '') {
switch ($op) {
case 'list':
return array(
0 => t('oEmbed filter'),
);
case 'description':
switch ($delta) {
case 0:
return t('Embeds content for oEmbed-enabled web addresses and turns the rest, and e-mail addresses, into clickable links.');
default:
return;
}
case 'process':
switch ($delta) {
case 0:
module_load_include('inc', 'oembed');
return _oembed_filter_apply($text, $format);
default:
return $text;
}
case 'settings':
switch ($delta) {
case 0:
module_load_include('inc', 'oembed');
return _oembed_filter_settings($format);
default:
return;
}
default:
return $text;
}
}