Skip to content
Snippets Groups Projects
Commit 247e012c authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #39013 by drumm: more logical naming of themeable functions

parent debb7da3
No related branches found
No related tags found
No related merge requests found
......@@ -918,10 +918,10 @@ function comment_render($node, $cid = 0) {
$output .= theme('comment_flat_expanded', $comment);
}
else if ($mode == COMMENT_MODE_THREADED_COLLAPSED) {
$output .= theme('comment_thread_min', $comment);
$output .= theme('comment_thread_collapsed', $comment);
}
else if ($mode == COMMENT_MODE_THREADED_EXPANDED) {
$output .= theme('comment_thread_max', $comment);
$output .= theme('comment_thread_expanded', $comment);
}
}
......@@ -1372,14 +1372,14 @@ function theme_comment_flat_expanded($comment) {
return theme('comment_view', $comment, module_invoke_all('link', 'comment', $comment, 0));
}
function theme_comment_thread_min($comment, $pid = 0) {
function theme_comment_thread_collapsed($comment) {
$output = '<div style="margin-left:'. ($comment->depth * 25) ."px;\">\n";
$output .= theme('comment_view', $comment, '', 0);
$output .= "</div>\n";
return $output;
}
function theme_comment_thread_max($comment, $level = 0) {
function theme_comment_thread_expanded($comment) {
$output = '';
if ($comment->depth) {
$output .= '<div style="margin-left:'. ($comment->depth * 25) ."px;\">\n";
......
......@@ -918,10 +918,10 @@ function comment_render($node, $cid = 0) {
$output .= theme('comment_flat_expanded', $comment);
}
else if ($mode == COMMENT_MODE_THREADED_COLLAPSED) {
$output .= theme('comment_thread_min', $comment);
$output .= theme('comment_thread_collapsed', $comment);
}
else if ($mode == COMMENT_MODE_THREADED_EXPANDED) {
$output .= theme('comment_thread_max', $comment);
$output .= theme('comment_thread_expanded', $comment);
}
}
......@@ -1372,14 +1372,14 @@ function theme_comment_flat_expanded($comment) {
return theme('comment_view', $comment, module_invoke_all('link', 'comment', $comment, 0));
}
function theme_comment_thread_min($comment, $pid = 0) {
function theme_comment_thread_collapsed($comment) {
$output = '<div style="margin-left:'. ($comment->depth * 25) ."px;\">\n";
$output .= theme('comment_view', $comment, '', 0);
$output .= "</div>\n";
return $output;
}
function theme_comment_thread_max($comment, $level = 0) {
function theme_comment_thread_expanded($comment) {
$output = '';
if ($comment->depth) {
$output .= '<div style="margin-left:'. ($comment->depth * 25) ."px;\">\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment