function image_form_add_thumbnail in Image 5
Same name and namespace in other branches
- 5.2 image.module \image_form_add_thumbnail()
- 6 image.module \image_form_add_thumbnail()
1 string reference to 'image_form_add_thumbnail'
- image_form in ./
image.module - Implementation of hook_form
File
- ./
image.module, line 477
Code
function image_form_add_thumbnail($form_id, $edit) {
if ($edit['images']['thumbnail']) {
$node = (object) $edit;
$form = array(
'#type' => 'item',
'#title' => t('Thumbnail'),
'#value' => image_display($node, IMAGE_THUMBNAIL),
'#weight' => -10,
);
}
return $form;
}