You are here

function image_content_extra_fields in Image 6

Implementation of hook_content_extra_fields().

Lets CCK expose the image weight in the node content.

File

./image.module, line 1137

Code

function image_content_extra_fields($type_name) {
  if ($type_name == 'image') {
    $extra['image'] = array(
      'label' => t('Image'),
      'description' => t('Image display.'),
      'weight' => 0,
    );
    return $extra;
  }
}