summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addthis.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/addthis.module b/addthis.module
index 6e5075c..6d6645f 100644
--- a/addthis.module
+++ b/addthis.module
@@ -22,7 +22,8 @@ function addthis_link($type, $node=NULL, $teaser = FALSE) {
$links = array();
if ($type === 'node' && user_access('view addthis')) {
- if (! $teaser || variable_get('addthis_display_in_teasers', '0')) {
+ if (($teaser && variable_get('addthis_display_in_teasers', '0')) ||
+ (!$teaser && variable_get('addthis_display_in_links', '0'))) {
$links['addthis'] = array(
'title' => _addthis_create_button($node, $teaser),
'html' => TRUE,