function twitter_views_handler_field_profile_image::render in Twitter 6.5
Same name and namespace in other branches
- 6.2 twitter_views_field_handlers.inc \twitter_views_handler_field_profile_image::render()
- 6.3 twitter_views_field_handlers.inc \twitter_views_handler_field_profile_image::render()
- 6.4 twitter_views_field_handlers.inc \twitter_views_handler_field_profile_image::render()
- 7.6 twitter_views_field_handlers.inc \twitter_views_handler_field_profile_image::render()
- 7.3 twitter_views_field_handlers.inc \twitter_views_handler_field_profile_image::render()
- 7.4 twitter_views_field_handlers.inc \twitter_views_handler_field_profile_image::render()
- 7.5 twitter_views_field_handlers.inc \twitter_views_handler_field_profile_image::render()
File
- ./
twitter_views_field_handlers.inc, line 77 - Views handlers for Twitter module.
Class
- twitter_views_handler_field_profile_image
- Field handler to provide simple renderer that turns a URL into a clickable link.
Code
function render($values) {
$path = $values->{$this->field_alias};
$output = theme('image', $path, '', '', array(
'width' => 48,
'height' => '48',
), FALSE);
// Convert to a protocol-relative URL so that the same image tag will work
// regardless of whether the page is loaded via HTTP or HTTPS.
return str_replace('http:', '', $output);
}