function theme_emfield_handler_field_provider in Embedded Media Field 6.2
Same name and namespace in other branches
- 6.3 includes/views/emfield.views.inc \theme_emfield_handler_field_provider()
- 6 includes/views/emfield.views.inc \theme_emfield_handler_field_provider()
2 theme calls to theme_emfield_handler_field_provider()
- emfield_handler_field_provider::render in includes/
views/ handlers/ emfield_handler_field_provider.inc - emfield_handler_field_provider::render_provider in includes/
views/ handlers/ emfield_handler_field_provider.inc
File
- includes/
views/ emfield.views.inc, line 79 - Interface between emfield.module and views.module.
Code
function theme_emfield_handler_field_provider($item, $field, $node, $values, $format) {
$output = '';
if (!empty($item) || $item == '0') {
$provider = $item['provider'];
$module = $field['module'];
$info = emfield_include_invoke($module, $provider, 'info');
switch ($format) {
case 'provider_raw':
$output = check_plain($info['provider']);
break;
case 'provider_link':
$output = l($info['name'], $info['url']);
break;
case 'provider_url':
$output = url($info['url']);
break;
case 'provider_original_link':
$output = l($info['name'], emfield_include_invoke($module, $provider, 'embedded_link', $item['value']));
break;
case 'provider_original_url':
$output = url(emfield_include_invoke($module, $provider, 'embedded_link', $item['value']));
break;
case 'provider':
default:
$output = check_plain($info['name']);
break;
}
}
return $output;
}