Created
May 24, 2009 22:35
-
-
Save dawehner/117287 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Theme comment flat collapsed view. | |
* | |
* @param $comment | |
* The comment to be themed. | |
* @param $node | |
* The comment node. | |
* @ingroup themeable | |
*/ | |
function theme_comment_flat_collapsed($comment, $node) { | |
return theme('comment_view', $comment, $node, '', 0); | |
} | |
/** | |
* Theme comment flat expanded view. | |
* | |
* @param $comment | |
* The comment to be themed. | |
* @param $node | |
* The comment node. | |
* @ingroup themeable | |
*/ | |
function theme_comment_flat_expanded($comment, $node) { | |
$links = module_invoke_all('link', 'comment', $comment, 0); | |
drupal_alter('comment_links', $links); | |
return theme('comment_view', $comment, $node, $links)); | |
} | |
/** | |
* Theme comment thread collapsed view. | |
* | |
* @param $comment | |
* The comment to be themed. | |
* @param $node | |
* The comment node. | |
* @ingroup themeable | |
*/ | |
function theme_comment_thread_collapsed($comment, $node) { | |
return theme('comment_view', $comment, $node, '', 0); | |
} | |
/** | |
* Theme comment thread expanded view. | |
* | |
* @param $comment | |
* The comment to be themed. | |
* @param $node | |
* The comment node. | |
* @ingroup themeable | |
*/ | |
function theme_comment_thread_expanded($comment, $node) { | |
$links = module_invoke_all('link', 'comment', $comment, 0); | |
drupal_alter('comment_links', $links); | |
return theme('comment_view', $comment, $node, $links)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment