function eminline_filter in Embedded Media Field 6
Same name and namespace in other branches
- 5 contrib/eminline/eminline.module \eminline_filter()
- 6.3 contrib/eminline/eminline.module \eminline_filter()
- 6.2 contrib/eminline/eminline.module \eminline_filter()
Implemenation of hook_filter().
File
- contrib/
eminline/ eminline.module, line 6
Code
function eminline_filter($op, $delta = 0, $format = -1, $text = '', $langcode = '', $cache_id = 0) {
switch ($op) {
case 'list':
return array(
0 => t('Embedded Inline Media'),
);
case 'description':
switch ($delta) {
case 0:
return t('Embed videos from specified URL.');
default:
return;
}
case "process":
switch ($delta) {
case 0:
return _eminline_url($text, $format);
default:
return;
}
case 'settings':
switch ($delta) {
case 0:
return _eminline_url_settings($format);
default:
return;
}
default:
return $text;
}
}