time_ago = time() - $comment->timestamp; } /** * The comment is being published by the moderator. * * @param $comment * Passes in the comment the action is being performed on. * @return * Nothing. */ function hook_comment_publish($comment) { drupal_set_message(t('Comment: @subject has been published', array('@subject' => $comment->subject))); } /** * The comment is being unpublished by the moderator. * * @param $comment * Passes in the comment the action is being performed on. * @return * Nothing. */ function hook_comment_unpublish($comment) { drupal_set_message(t('Comment: @subject has been unpublished', array('@subject' => $comment->subject))); } /** * The comment is being deleted by the moderator. * * @param $comment * Passes in the comment the action is being performed on. * @return * Nothing. */ function hook_comment_delete($comment) { drupal_set_message(t('Comment: @subject has been deleted', array('@subject' => $comment->subject))); } /** * @} End of "addtogroup hooks". */