image tab appears for all node types

doka - April 14, 2009 - 18:24
Project:Node Images
Version:6.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

If you are the owner/creator of a node, the image tab appears in node views, even if the content type has been configured _not_ to use with node images. The reason is a missing check in _node_images_access function of node_images.module. To correct this, add this line to the line 812 of of node_images.module file:

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

#1

cyc - July 23, 2009 - 00:41
Status:needs review» reviewed & tested by the community

worked for me.

As it seems to be very simple and clear modification, I've changed status - module author should include this line to the code.

 
 

Drupal is a registered trademark of Dries Buytaert.