summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addthis.info2
-rw-r--r--addthis.module16
2 files changed, 9 insertions, 9 deletions
diff --git a/addthis.info b/addthis.info
index c3026f1..e255e29 100644
--- a/addthis.info
+++ b/addthis.info
@@ -1,4 +1,4 @@
; $Id$
name = AddThis
description = Creates AddThis button as a block, to be used in themes and to node links.
-core = 5.x \ No newline at end of file
+core = 6.x \ No newline at end of file
diff --git a/addthis.module b/addthis.module
index 94fc211..41c3b4a 100644
--- a/addthis.module
+++ b/addthis.module
@@ -36,18 +36,18 @@ function addthis_link($type, $node=NULL, $teaser = FALSE) {
function addthis_menu() {
$items = array();
- $items[] = array(
- 'path' => 'admin/settings/addthis',
- 'title' => t('AddThis module settings'),
- 'description' => t('Set username and customize look and feel for <a href="http://www.addthis.com/">AddThis</a> button.'),
- 'callback' => 'drupal_get_form',
- 'callback arguments' => array('addthis_admin_settings'),
- 'access' => user_access('administer addthis'),
+ $items['admin/settings/addthis'] = array(
+ 'title' => t('AddThis module settings'),
+ 'description' => t('Set username and customize look and feel for <a href="http://www.addthis.com/">AddThis</a> button.'),
+ 'page callback' => 'drupal_get_form',
+ 'page arguments' => array('addthis_admin_settings'),
+ 'access arguments' => array('administer addthis'),
);
return $items;
}
+
/**
* Administration settings form.
*
@@ -217,7 +217,7 @@ function _addthis_create_button($node=NULL, $teaser = FALSE) {
onclick="return addthis_sendto()"><img src="%s" width="%d" height="%d" %s /></a></div>
<script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
',
- $teaser ? url('node/'. $node->nid, NULL, NULL, TRUE) : '[URL]',
+ $teaser ? url('node/'.$node->nid, array('absolute' => 1) ) : '[URL]',
$teaser ? addslashes($node->title) : '[TITLE]',
variable_get('addthis_image', 'http://s9.addthis.com/button1-share.gif'),
variable_get('addthis_image_width', '125'),