--- copyright.module 2007-10-05 11:47:40.000000000 -0400 +++ copyright.module 2008-01-14 07:30:52.000000000 -0500 @@ -483,23 +483,25 @@ /** * Implementation of hook_nodeapi(). */ -function copyright_nodeapi(&$node, $op, $arg = 0) { +function copyright_nodeapi(&$node, $op, $teaser, $page, $arg = 0) { if (variable_get('copyright-enable_'. $node->type, 0)) { switch ($op) { case 'view': - $node_license = copyright_get_node_license($node->nid); - if (!$node_license && $node->parent) { - // $node->parent set at node load time by book.module - $node_license = copyright_parent_node($node->parent); - } - if ($node_license && $node_license->cpyid != variable_get('copyright-default', 1)) { - // The node has a license other than the site's default - $license = copyright_get_license($node_license->cpyid); - $node->content['copyright'] = array( - '#value' => theme('copyright_footer', copyright_notice($license, $node, $node_license)), - '#weight' => 10, - ); - drupal_add_css(drupal_get_path('module', 'copyright') .'/copyright.css'); + if ($page) { + $node_license = copyright_get_node_license($node->nid); + if (!$node_license && $node->parent) { + // $node->parent set at node load time by book.module + $node_license = copyright_parent_node($node->parent); + } + if ($node_license && $node_license->cpyid != variable_get('copyright-default', 1)) { + // The node has a license other than the site's default + $license = copyright_get_license($node_license->cpyid); + $node->content['copyright'] = array( + '#value' => theme('copyright_footer', copyright_notice($license, $node, $node_license)), + '#weight' => 10, + ); + drupal_add_css(drupal_get_path('module', 'copyright') .'/copyright.css'); + } } break;