I couldn't figure out why I wasn't seeing any preview images of my photos on the Images tab until I dug in the code. It seems the hook_nodeapi() function is not loading in the node images if the settings for that node are to hide the images. This may be intended, but I think can cause confusion. I expected the images to be hidden in the node view only and not in the Images tab. I would make the following changes in the hook_nodeapi() function:

    if (variable_get('node_images_position_'.$node->type, 'hide') == 'hide') return;

change to

    if (arg(2) != images && variable_get('node_images_position_'.$node->type, 'hide') == 'hide') return;

This will ensure that node images are loaded into the node object when we are on the images tab, even if images are set to be hidden in the display.

Comments

stefano73’s picture

Can you check the latest 6.2 release? http://drupal.org/node/298760

stefano73’s picture

Status: Active » Closed (fixed)