From d83289f857853b2efca194cd663267c24dbfd305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 6 Dec 2007 09:58:34 +0000 Subject: #196667 (GHOP 45) by fberci: add '@ingroup themeable' to all themeable functions --- modules/comment/comment.module | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index dc217aca6..4876fe638 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1448,6 +1448,11 @@ function comment_form_submit($form, &$form_state) { } } +/** + * Return a themed comment. + * + * @ingroup themeable + */ function theme_comment_view($comment, $node, $links = array(), $visible = 1) { static $first_new = TRUE; @@ -1506,7 +1511,11 @@ function comment_controls($mode = COMMENT_MODE_THREADED_EXPANDED, $order = COMME return $form; } - +/** + * Theme comment controls box where the user can change the default display mode and display order of comments. + * + * @ingroup themeable + */ function theme_comment_controls($form) { $output = '
'; $output .= drupal_render($form); @@ -1575,22 +1584,47 @@ function template_preprocess_comment_folded(&$variables) { $variables['title'] = l($comment->subject, comment_node_url() .'/'. $comment->cid, array('fragment' => "comment-$comment->cid")); } +/** + * Theme collapsed flat type comment. + * + * @ingroup themeable + */ function theme_comment_flat_collapsed($comment, $node) { return theme('comment_view', $comment, $node, '', 0); } +/** + * Theme expanded flat type comment. + * + * @ingroup themeable + */ function theme_comment_flat_expanded($comment, $node) { return theme('comment_view', $comment, $node, module_invoke_all('link', 'comment', $comment, 0)); } +/** + * Theme collapsed thread type comment. + * + * @ingroup themeable + */ function theme_comment_thread_collapsed($comment, $node) { return theme('comment_view', $comment, $node, '', 0); } +/** + * Theme expanded thread type comment. + * + * @ingroup themeable + */ function theme_comment_thread_expanded($comment, $node) { return theme('comment_view', $comment, $node, module_invoke_all('link', 'comment', $comment, 0)); } +/** + * Theme the "comment posting is forbidden" message. + * + * @ingroup themeable + */ function theme_comment_post_forbidden($node) { global $user; if ($user->uid) { @@ -1634,6 +1668,8 @@ function template_preprocess_comment_wrapper(&$variables) { /** * Make the submitted variable themable + * + * @ingroup themeable */ function theme_comment_submitted($comment) { return t('Submitted by !username on @datetime.', -- cgit v1.2.3