function _node_gallery_alter in Node Gallery 6
Implementation of hook_nodeapi(op='alter').
File
- ./
node_gallery.module, line 240 - Node gallery module file.
Code
function _node_gallery_alter(&$node) {
if (gallery_config_gateway::get_types('image', $node->type)) {
$config = gallery_config_gateway::get_by($node->gid, 'id');
if ($config->content_display == 'gallery') {
//we'll display gallery's comments, not image's;
$node->old_comment = $node->comment;
$node->comment = 0;
}
}
}