From 74c257170bf53ec520f1e78f779c17356875db41 Mon Sep 17 00:00:00 2001
From: Vincent Massaro <vincent.massaro@yale.edu>
Date: Mon, 23 Jan 2017 23:54:12 -0500
Subject: [PATCH] Update the sharethis_location variable to an array.

---
 sharethis.install | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sharethis.install b/sharethis.install
index 1641a86..844c10c 100644
--- a/sharethis.install
+++ b/sharethis.install
@@ -86,3 +86,14 @@ function sharethis_update_7002() {
   variable_set("sharethis_service_option", str_replace('&quot;', '"', variable_get("sharethis_service_option")));
   cache_clear_all('variables', 'cache');
 }
+
+/**
+ * Update the sharethis_location variable to an array.
+ */
+function sharethis_update_7003() {
+  $location_places = variable_get('sharethis_location', array('content' => 'content'));
+  if (!is_array($location_places)) {
+    $location_places = array($location_places);
+    variable_set('sharethis_location', $location_places);
+  }
+}
-- 
2.10.0

