Index: commentrss.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/commentrss/commentrss.module,v retrieving revision 1.12.2.2.2.1 diff -u -r1.12.2.2.2.1 commentrss.module --- commentrss.module 28 Apr 2008 22:51:43 -0000 1.12.2.2.2.1 +++ commentrss.module 30 Jul 2008 10:03:42 -0000 @@ -36,7 +36,7 @@ 'title' => 'Comment RSS publishing', 'description' => 'Configure RSS feeds for comments.', 'page callback' => 'drupal_get_form', - 'page arguments' => 'commentrss_admin_settings', + 'page arguments' => array('commentrss_admin_settings'), 'access arguments' => array('administer site configuration'), 'type' => MENU_NORMAL_ITEM, ); @@ -284,3 +284,17 @@ return system_settings_form($form); } + +/** + * Implementation of hook_link(). + */ +function commentrss_link($type, $object, $teaser = FALSE) { + if ($type == 'node' && variable_get('commentrss_node', FALSE) && COMMENT_NODE_DISABLED != $object->comment) { + $links = array(); + $links['commentrss_node_link'] = array( + 'title' => t('comment RSS feed'), + 'href' => "crss/node/$object->nid", + ); + return $links; + } +} \ No newline at end of file