summaryrefslogtreecommitdiff
path: root/modules/comment/comment.admin.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-03 05:27:18 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-03 05:27:18 +0000
commitae842168f9a9b7227fe7eae8e79928b4d3b70d4e (patch)
tree4e4f648cfe4b18a7fa1a5764a3d6cb6b442ffb32 /modules/comment/comment.admin.inc
parenta986e349fa3676fce41f2aa02fb7b67fc24dacda (diff)
downloadbrdo-ae842168f9a9b7227fe7eae8e79928b4d3b70d4e.tar.gz
brdo-ae842168f9a9b7227fe7eae8e79928b4d3b70d4e.tar.bz2
#602522 by effulgentsia, sun, and moshe weitzman: Make links in renderable arrays and forms (e.g. 'Operations') alterable.
Diffstat (limited to 'modules/comment/comment.admin.inc')
-rw-r--r--modules/comment/comment.admin.inc26
1 files changed, 23 insertions, 3 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc
index ddabc017c..59a9717f8 100644
--- a/modules/comment/comment.admin.inc
+++ b/modules/comment/comment.admin.inc
@@ -86,11 +86,31 @@ function comment_admin_overview($form, &$form_state, $arg) {
foreach ($result as $comment) {
$options[$comment->cid] = array(
- 'subject' => l($comment->subject, 'comment/' . $comment->cid, array('attributes' => array('title' => truncate_utf8($comment->comment, 128)), 'fragment' => 'comment-' . $comment->cid)),
+ 'subject' => array(
+ 'data' => array(
+ '#type' => 'link',
+ '#title' => $comment->subject,
+ '#href' => 'comment/' . $comment->cid,
+ '#options' => array('attributes' => array('title' => truncate_utf8($comment->comment, 128)), 'fragment' => 'comment-' . $comment->cid),
+ ),
+ ),
'author' => theme('username', array('account' => $comment)),
- 'posted_in' => l($comment->node_title, 'node/' . $comment->nid),
+ 'posted_in' => array(
+ 'data' => array(
+ '#type' => 'link',
+ '#title' => $comment->node_title,
+ '#href' => 'node/' . $comment->nid,
+ ),
+ ),
'changed' => format_date($comment->changed, 'short'),
- 'operations' => l(t('edit'), 'comment/' . $comment->cid .'/edit', array('query' => $destination)),
+ 'operations' => array(
+ 'data' => array(
+ '#type' => 'link',
+ '#title' => t('edit'),
+ '#href' => 'comment/' . $comment->cid . '/edit',
+ '#options' => array('query' => $destination),
+ ),
+ ),
);
}