You are here

function theme_imagefield_widget in ImageField 6.3

FormAPI theme function. Theme the output of an image field.

File

./imagefield_widget.inc, line 283
ImageField widget hooks and callbacks.

Code

function theme_imagefield_widget($element) {
  drupal_add_css(drupal_get_path('module', 'imagefield') . '/imagefield.css');
  $element['#id'] .= '-upload';

  // Link the label to the upload field.
  return theme('form_element', $element, $element['#children']);
}