summaryrefslogtreecommitdiff
path: root/modules/comment/comment.api.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-10-03 01:15:34 +0000
committerDries Buytaert <dries@buytaert.net>2010-10-03 01:15:34 +0000
commit8ec40cc27a72e3dec43d80432a3250af7c03aed3 (patch)
treefcc37f6506cc2e8c511399584a899c40c70e0772 /modules/comment/comment.api.php
parent69e9e3e3a2c2d52a149914565fa451ed967280e1 (diff)
downloadbrdo-8ec40cc27a72e3dec43d80432a3250af7c03aed3.tar.gz
brdo-8ec40cc27a72e3dec43d80432a3250af7c03aed3.tar.bz2
- Patch #922824 by plach: no way to specify the language to view entities in.
Diffstat (limited to 'modules/comment/comment.api.php')
-rw-r--r--modules/comment/comment.api.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/comment/comment.api.php b/modules/comment/comment.api.php
index c7d2f6afa..d2b03911c 100644
--- a/modules/comment/comment.api.php
+++ b/modules/comment/comment.api.php
@@ -64,10 +64,12 @@ function hook_comment_load($comments) {
*
* @param $comment
* Passes in the comment the action is being performed on.
- * @return
- * Nothing.
+ * @param $view_mode
+ * View mode, e.g. 'full', 'teaser'...
+ * @param $langcode
+ * The language code used for rendering.
*/
-function hook_comment_view($comment) {
+function hook_comment_view($comment, $view_mode, $langcode) {
// how old is the comment
$comment->time_ago = time() - $comment->changed;
}