function eminline_filter_tips in Embedded Media Field 6.2
Same name and namespace in other branches
- 5 contrib/eminline/eminline.module \eminline_filter_tips()
- 6.3 contrib/eminline/eminline.module \eminline_filter_tips()
- 6 contrib/eminline/eminline.module \eminline_filter_tips()
Implementation of hook_filter_tips().
File
- contrib/
eminline/ eminline.module, line 41
Code
function eminline_filter_tips($delta, $format, $long = FALSE) {
$output = '';
switch ($delta) {
case '0':
$providers = variable_get('eminline_providers_' . $format, array_keys(emfield_system_list('emvideo', NULL, FALSE)));
$output .= t('You may embed media from the following providers %providers. Just add the URL of the media to your textarea in the place where you would like the media to appear, i.e. http://www.youtube.com/watch?v=pw0jmvdh. You can optionally modify the display of the media by adding comma-separated attributes in brackets with no space following the URL, such as http://www.youtube.com/watch?v=pw0jmvdh[width=640,height=320].', array(
'%providers' => implode(', ', array_filter($providers)),
));
}
return $output;
}