You are here

function image_form_add_thumbnail in Image 6

Same name and namespace in other branches
  1. 5.2 image.module \image_form_add_thumbnail()
  2. 5 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 296

Code

function image_form_add_thumbnail($form, &$form_state) {
  if ($form_state['values']['images'][IMAGE_THUMBNAIL]) {
    $node = (object) $form_state['values'];
    $form['#title'] = t('Thumbnail');
    $form['#value'] = image_display($node, IMAGE_THUMBNAIL);
  }
  return $form;
}