You are here

function theme_emthumb_image in Embedded Media Field 6

Same name and namespace in other branches
  1. 5 contrib/emthumb/emthumb.module \theme_emthumb_image()
  2. 6.3 contrib/emthumb/emthumb.module \theme_emthumb_image()
  3. 6.2 contrib/emthumb/emthumb.module \theme_emthumb_image()

Returns the HTML to display a custom thumbnail image.

2 theme calls to theme_emthumb_image()
emthumb_widget_element_process in contrib/emthumb/emthumb.module
Process our emthumb element.
theme_emthumb_view_image in contrib/emthumb/emthumb.module
Returns the image thumbnail. @TODO: Is this even being used?

File

contrib/emthumb/emthumb.module, line 757
Allows for custom thumbnail overrides to Embedded Media Field.

Code

function theme_emthumb_image($file, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE) {
  $file = (array) $file;
  $path = file_create_url($file['filepath']);
  $alt = empty($alt) ? $file['emthumb_alt'] : $alt;
  $title = empty($title) ? $file['emthumb_title'] : $title;
  return theme('image', $path, $alt, $title, $attributes, $getsize);
}