summaryrefslogtreecommitdiff
path: root/modules/comment/comment.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-07-16 21:59:29 +0000
committerDries Buytaert <dries@buytaert.net>2008-07-16 21:59:29 +0000
commit57fe5103daf5db65cd43f309e0f22f5c4781605d (patch)
treef111e494e7ce2c666727c35541b3758c3c0dad84 /modules/comment/comment.admin.inc
parent11b9f390bfc37d8df0fabde3a3417d60b55f8de4 (diff)
downloadbrdo-57fe5103daf5db65cd43f309e0f22f5c4781605d.tar.gz
brdo-57fe5103daf5db65cd43f309e0f22f5c4781605d.tar.bz2
- Patch #252013 by Eaton, pwolanin, Susurrus et al: drupal_render() now printes #markup, not #value.
Diffstat (limited to 'modules/comment/comment.admin.inc')
-rw-r--r--modules/comment/comment.admin.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc
index 82658c171..af7f2090b 100644
--- a/modules/comment/comment.admin.inc
+++ b/modules/comment/comment.admin.inc
@@ -76,19 +76,19 @@ function comment_admin_overview($type = 'new', $arg) {
$comments[$comment->cid] = '';
$comment->name = $comment->uid ? $comment->registered_name : $comment->name;
$form['subject'][$comment->cid] = array(
- '#value' => l($comment->subject, 'node/' . $comment->nid, array('attributes' => array('title' => truncate_utf8($comment->comment, 128)), 'fragment' => 'comment-' . $comment->cid))
+ '#markup' => l($comment->subject, 'node/' . $comment->nid, array('attributes' => array('title' => truncate_utf8($comment->comment, 128)), 'fragment' => 'comment-' . $comment->cid))
);
$form['username'][$comment->cid] = array(
- '#value' => theme('username', $comment)
+ '#markup' => theme('username', $comment)
);
$form['node_title'][$comment->cid] = array(
- '#value' => l($comment->node_title, 'node/' . $comment->nid)
+ '#markup' => l($comment->node_title, 'node/' . $comment->nid)
);
$form['timestamp'][$comment->cid] = array(
- '#value' => format_date($comment->timestamp, 'small')
+ '#markup' => format_date($comment->timestamp, 'small')
);
$form['operations'][$comment->cid] = array(
- '#value' => l(t('edit'), 'comment/edit/' . $comment->cid, array('query' => $destination))
+ '#markup' => l(t('edit'), 'comment/edit/' . $comment->cid, array('query' => $destination))
);
}
$form['comments'] = array(
@@ -96,7 +96,7 @@ function comment_admin_overview($type = 'new', $arg) {
'#options' => isset($comments) ? $comments: array()
);
$form['pager'] = array(
- '#value' => theme('pager', NULL, 50, 0)
+ '#markup' => theme('pager', NULL, 50, 0)
);
return $form;
@@ -169,7 +169,7 @@ function theme_comment_admin_overview($form) {
}
$output .= theme('table', $form['header']['#value'], $rows);
- if ($form['pager']['#value']) {
+ if ($form['pager']['#markup']) {
$output .= drupal_render($form['pager']);
}