You are here

function theme_imagefield_edit_image_row in ImageField 5

Same name and namespace in other branches
  1. 5.2 imagefield.module \theme_imagefield_edit_image_row()
1 theme call to theme_imagefield_edit_image_row()
_imagefield_widget_form in ./imagefield.module

File

./imagefield.module, line 605
Defines an image field type. imagefield uses content.module to store the fid, and the drupal files table to store the actual file data.

Code

function theme_imagefield_edit_image_row($element) {
  $output = '<div class="imagefield-edit-preview">' . drupal_render($element['preview']) . '</div>';
  $output .= '<div class="imagefield-edit-image-detail">';
  $output .= '<div class="imagefield-edit-image-flags">' . drupal_render($element['flags']) . '</div>';
  $output .= '<div class="imagefield-edit-image-description">' . drupal_render($element['description']);
  $output .= '</div>';
  $output .= drupal_render($element['alt']);
  $output .= drupal_render($element['title']);
  $output .= '</div>';

  //$output .= '<div class="imagefield-edit-image-fid">'. $element['fid']['#value'] .'</div>';
  $output = '<div class="imagefield-edit-image-row clear-block">' . $output . '</div>';
  if (isset($element['replace'])) {
    $output .= '<div class="imagefield-edit-image-replace">' . drupal_render($element['replace']) . '</div>';
  }
  return $output;
}