function theme_emthumb_edit_image_row in Embedded Media Field 6
Same name and namespace in other branches
- 5 contrib/emthumb/emthumb.module \theme_emthumb_edit_image_row()
- 6.3 contrib/emthumb/emthumb.module \theme_emthumb_edit_image_row()
- 6.2 contrib/emthumb/emthumb.module \theme_emthumb_edit_image_row()
Theme the emthumb element on the node edit form when there's a custom thumbnail already in place.
1 theme call to theme_emthumb_edit_image_row()
- emthumb_widget_element_process in contrib/
emthumb/ emthumb.module - Process our emthumb element.
File
- contrib/
emthumb/ emthumb.module, line 788 - Allows for custom thumbnail overrides to Embedded Media Field.
Code
function theme_emthumb_edit_image_row($element) {
$output = '<div class="emthumb-edit-preview">' . drupal_render($element['preview']) . '</div>';
$output .= '<div class="emthumb-edit-image-detail">';
$output .= '<div class="emthumb-edit-image-flags">' . drupal_render($element['flags']) . '</div>';
$output .= '<div class="emthumb-edit-image-description">' . drupal_render($element['description']);
$output .= '</div>';
$output .= drupal_render($element['emthumb_alt']);
$output .= drupal_render($element['emthumb_title']);
$output .= '</div>';
$output = '<div class="emthumb-edit-image-row clear-block">' . $output . '</div>';
if (isset($element['replace'])) {
$output .= '<div class="emthumb-edit-image-replace">' . drupal_render($element['replace']) . '</div>';
}
return $output;
}