--- addthis.module.orig 2013-02-22 16:36:55.451696046 +0200 +++ addthis.module 2013-02-22 16:41:29.492700254 +0200 @@ -28,12 +28,17 @@ function addthis_node_view($node, $build_mode) { $links = array(); if (user_access('view addthis')) { - if (($node && variable_get('addthis_nodetype_' . $node->type, 1)) && - (($build_mode == 'teaser' && variable_get('addthis_display_in_teasers', '0')) || - ($build_mode == 'full' && variable_get('addthis_display_in_links', '0')))) { - $node->content['addthis'] = array( - '#markup' => _addthis_create_button(array('build_mode' => $build_mode)) - ); + if ($node && variable_get('addthis_nodetype_' . $node->type, 1)) { + if ($build_mode == 'teaser' && variable_get('addthis_display_in_teasers', '0')) { + $node->content['addthis'] = array( + '#markup' => _addthis_create_button(array('build_mode' => $build_mode)) + ); + } else if ($build_mode == 'full' && variable_get('addthis_display_in_links', '0')) { + $node->content['links']['#links']['addthis'] = array( + 'title' => _addthis_create_button(array('build_mode' => $build_mode)), + 'html' => TRUE, + ); + } } } }