--- C:/Documents and Settings/ja/My Documents/drupal-cvs/contributions/modules/timeago/timeago.module	Wed Apr 11 04:44:52 2007
+++ C:/Documents and Settings/ja/My Documents/Development/Drupal_development/timeago/timeago.module	Wed Apr 11 04:42:12 2007
@@ -115,6 +115,21 @@
 } // function timeago_nodeapi
 
 /**
+ * hook_comment implementation
+ *
+ * Sets $comment->timeago available in comment.tpl.php
+ */
+function timeago_comment(&$comment, $op) {
+  switch($op) {
+    case 'view':
+      $timeago = theme('timeago_posted', format_date($comment->timestamp, variable_get('timeago_node_dateformat_title', 'large')), timeago_prepare($comment->timestamp, time(), false, variable_get('timeago_node_round', 3),variable_get('timeago_node_maxdate', '32556926'),'medium'));
+
+      $comment->timeago = $timeago;
+			break;
+  }
+}
+
+/**
  * Module configuration settings
  * @return settings HTML or deny access
  */
@@ -161,4 +176,4 @@
 	
 } // function timeago_settings
 
-?>
\ No newline at end of file
+?>
