? .comment_page.module.rej.swp
Index: comment_page.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/comment_page/comment_page.info,v
retrieving revision 1.1
diff -r1.1 comment_page.info
4c4,5
< dependencies = comment
---
> dependencies[] = comment
> core = 6.x
Index: comment_page.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/comment_page/comment_page.module,v
retrieving revision 1.2
diff -r1.2 comment_page.module
15,29c15,32
< function comment_page_menu($may_cache) {
<   if ($may_cache) {
<     $items[] = array(
<       'path' => 'admin/content/comment_page',
<       'title' => t('Comment page'),
<       'description' => t('Adjust the settings for the comment page module.'),
<       'callback' => 'drupal_get_form',
<       'callback arguments' => array('comment_page_settings'),
<       'access' => user_access('administer comments'),
<       'type' => MENU_NORMAL_ITEM,
<     );
<   }    
<   else {
<     if (arg(0) == 'comment' && intval(arg(1)) > 0) {
<       drupal_add_css(drupal_get_path('module', 'comment_page') .'/comment_page.css');
---
> function comment_page_menu() {
>   $items['admin/content/comment_page'] = array(
>     'title' => 'Comment page',
>     'description' => 'Adjust the settings for the comment page module.',
>     'page callback' => 'drupal_get_form',
>     'page arguments' => array('comment_page_settings'),
>     'access arguments' => array('admin comments'),
>     'type' => MENU_NORMAL_ITEM,
>   );
> 
>   $items['comment/%comment_page'] = array(
>     'title' => 'Viewing a comment',
>     'description' => 'View this comment.',
>     'page callback' => 'comment_page_display',
>     'page arguments' => array(1),
>     'access arguments' => array('access comments'),
>     'type' => MENU_CALLBACK,
>   );
31,40c34,45
<       $items[] = array(
<         'path' => 'comment/'. arg(1),
<         'title' => t('Viewing a comment'),
<         'description' => t('View this comment.'),
<         'callback' => 'comment_page_display',
<         'callback arguments' => array(arg(1)),
<         'access' => user_access('access comments'),
<         'type' => MENU_CALLBACK,
<       );
<     }
---
>   return $items;
> }
> 
> /**
>  * Implementation of hook_load()
>  *
>  * This will be called based on the menu definition above to pass back a
>  * comment based on the %comment_page placeholder
>  */
> function comment_page_load($cid) {
>   if (!is_numeric($cid) || $cid < 1) {
>     return FALSE;
43c48
<   return $items;
---
>   return _comment_load($cid);
50c55
<   switch($op) {
---
>   switch ($op) {
239c244
<   $node->replies = db_num_rows($result);
---
>   $node->replies = db_result(db_query("SELECT COUNT(*) FROM {comments} WHERE nid = %d", $comment->nid));
253c258
<   
---
> 
265c270
<   
---
> 
272c277
<     
---
> 
308c313
<     
---
> 
