summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Grossenbacher2010-09-07 17:14:54 (GMT)
committer Sascha Grossenbacher2010-09-07 17:14:54 (GMT)
commitf282a97a780aa1f8f20e45271704d152699f9cdd (patch)
tree9938064f369cc969346ac4b7ccdb9104c3803022
parent9fb33b997be141fa4615a374b7757fb480d15a24 (diff)
by Berdir: Fixed tests broken by core API change: [#878092]
-rw-r--r--privatemsg.module9
1 files changed, 2 insertions, 7 deletions
diff --git a/privatemsg.module b/privatemsg.module
index f55b325..bc0842b 100644
--- a/privatemsg.module
+++ b/privatemsg.module
@@ -2144,16 +2144,11 @@ function privatemsg_node_view($node, $view_mode) {
$types = array_filter(variable_get('privatemsg_link_node_types', array()));
$url = privatemsg_get_link(_privatemsg_user_load($node->uid));
if (in_array($node->type, $types) && !empty($url) && ($view_mode == 'full' || (variable_get('privatemsg_display_on_teaser', 1) && $view_mode == 'teaser'))) {
- $links['privatemsg_link'] = array(
+ $node->content['links']['#links']['privatemsg_link'] = array(
'title' => t('Send author a message'),
'href' => $url . '/' . t('Message regarding @node', array('@node' => $node->title)),
'query' => drupal_get_destination(),
- 'attributes' => array('class' => 'privatemsg-send-link privatemsg-send-link-comment'),
- );
- $node->content['links']['privatemsg'] = array(
- '#theme' => 'links',
- '#links' => $links,
- '#attributes' => array('class' => array('privatemsg-send-link', 'privatemsg-send-link-node', 'links', 'inline')),
+ 'attributes' => array('class' => 'privatemsg-send-link privatemsg-send-link-node'),
);
}
}