function theme_imagefield_crop_widget in Imagefield Crop 7.2
Same name and namespace in other branches
- 6 imagefield_crop_widget.inc \theme_imagefield_crop_widget()
- 7.3 theme/theme.inc \theme_imagefield_crop_widget()
- 7 imagefield_crop.theme.inc \theme_imagefield_crop_widget()
File
- ./
imagefield_crop.module, line 882 - Functionality and Drupal hook implementations for the Imagefield Crop module.
Code
function theme_imagefield_crop_widget($variables) {
$element = $variables['element'];
$output = '';
$output .= '<div class="imagefield-crop-widget form-managed-file clearfix">';
if (isset($element['preview'])) {
$output .= '<div class="imagefield-crop-preview">';
$output .= drupal_render($element['preview']);
$output .= '</div>';
}
if (isset($element['cropbox'])) {
$output .= '<div class="imagefield-crop-cropbox">';
$output .= drupal_render($element['cropbox']);
$output .= '</div>';
}
$output .= drupal_render_children($element);
$output .= '</div>';
return $output;
}