Index: modules/image/image.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/image/image.module,v retrieving revision 1.203 diff -u -r1.203 image.module --- modules/image/image.module 11 Aug 2006 04:27:09 -0000 1.203 +++ modules/image/image.module 15 Aug 2006 11:24:31 -0000 @@ -29,7 +29,23 @@ * Implementation of hook_node_info */ function image_node_info() { - return array('image' => array('name' => t('image'), 'base' => 'image')); + $output = '
'. t('The image module is used to create and administer images for your site. Each image is stored as a post, with thumbnails of the original generated automatically. There are two default thumbnail sizes, thumbnail and preview. The thumbnail size is shown as the preview for image posts and when browsing image galleries. The preview is the default size when first displaying an image node.') .'
'; + $output .= '' .t('Image administration allows the image directory and the image sizes to be set.
+Image galleries are used to organize and display images in galleries. The list tab allows users to edit existing image gallery names, descriptions, parents and relative position, known as a weight. The add galleries tab allows you to create a new image gallery defining name, description, parent and weight.') .'
'; + $output .= t('You can
+'. t('For more information please read the configuration and customization handbook Image page.', array('%image' => 'http://www.drupal.org/handbook/modules/image/')) .'
'; + return array( + 'image' => array( + 'name' => t('image'), + 'module' => 'image', + 'description' => $output, + ), + ); } /** @@ -284,8 +300,12 @@ $request = ($_GET['size']) ? $_GET['size'] : 'preview'; $request = check_plain($request); $node = node_prepare($node, $teaser); - $node->teaser = theme('image_teaser', $node); - $node->body = theme('image_body', $node, $request); + $node->content['image'] = array( + '#value' => theme('image_body', $node, $request), + '#weight' => 1, + ); + + return $node; } /**