You are here

function talk_node_load in Talk 7

Implements hook_node_load().

File

./talk.module, line 169
Comments are displayed in a separate 'talk' tab, for node types you wish

Code

function talk_node_load($nodes, $types) {
  foreach ($nodes as &$node) {
    if (talk_activated($node->type) && arg(0) == 'node' && !arg(2)) {

      // Overwrite setting of comment module and set comments for this node to disabled.
      // This prevents the comments of being displayed.
      $node->comment_original_value = $node->comment;
      $node->comment = 0;
    }
  }
}