diff --git a/addthis.api.php b/addthis.api.php
index 9637126..7ed3241 100644
--- a/addthis.api.php
+++ b/addthis.api.php
@@ -55,3 +55,19 @@ function hook_addthis_markup_alter(&$markup) {
     $markup['google_plusone']['#attributes']['g:plusone:size'] = 'small';
   }
 }
+
+/**
+ * Implements hook_TYPE_alter().
+ *
+ * @param array $configuration.
+ */
+function hook_addthis_configuration($configuration) {
+
+  if (isset($configuration['templates'])) {
+    $configuration['templates']['twitter'] = 'Hello on twitter.';
+  }
+
+  if (isset($configuration['addthis_share'])) {
+    // Alter the share variable used for the javascript.
+  }
+}
\ No newline at end of file
diff --git a/classes/AddThis.php b/classes/AddThis.php
index a0d9925..20a3772 100644
--- a/classes/AddThis.php
+++ b/classes/AddThis.php
@@ -325,10 +325,16 @@ class AddThis {
       $configuration['templates']['twitter'] = $this->getTwitterTemplate();
       drupal_alter('addthis_configuration', $configuration);
 
-      $templates = array('templates' => $configuration['templates']);
+      $addthis_share = array(
+        'templates' => $configuration['templates'],
+      );
       unset($configuration['templates']);
+      if (isset($configuration['addthis_share'])) {
+        $addthis_share = array_merge($addthis_share, $configuration['addthis_share']);
+        unset($configuration['addthis_share']);
+      }
       $configurationOptionsJavascript = 'var addthis_config = ' . drupal_json_encode($configuration) . "\n";
-      $configurationOptionsJavascript .= 'var addthis_share = ' . drupal_json_encode($templates);
+      $configurationOptionsJavascript .= 'var addthis_share = ' . drupal_json_encode($addthis_share);
     }
     drupal_add_js(
       $configurationOptionsJavascript,
