Moved classes to a separate folder.
authorJani Palsamäki
Thu, 16 Jun 2011 11:55:06 +0000 (14:55 +0300)
committerJani Palsamäki
Thu, 16 Jun 2011 11:55:06 +0000 (14:55 +0300)
addthis.module
classes/AddThis.php [moved from AddThis.php with 97% similarity]
classes/Json.php [moved from Json.php with 100% similarity]
classes/MarkupGenerator.php [moved from MarkupGenerator.php with 100% similarity]

index eb95c3b..a15e408 100644 (file)
@@ -5,7 +5,7 @@
  * Defines simple AddThis field types.
  */
 
-module_load_include('php', 'addthis', 'AddThis');
+module_load_include('php', 'addthis', 'classes/AddThis');
 
 /**
  * Implements hook_help().
similarity index 97%
rename from AddThis.php
rename to classes/AddThis.php
index be4241e..53bcd36 100644 (file)
@@ -44,7 +44,7 @@ class AddThis {
   }
 
   public static function getWidgetMarkup($widgetType = '', $entity = NULL) {
-    module_load_include('php', self::MODULE_NAME, 'MarkupGenerator');
+    module_load_include('php', self::MODULE_NAME, 'classes/MarkupGenerator');
     switch ($widgetType) {
       case self::WIDGET_TYPE_LARGE_BUTTON:
         $markup =
@@ -125,7 +125,7 @@ class AddThis {
   }
 
   private static function getServices() {
-    module_load_include('php', self::MODULE_NAME, 'Json');
+    module_load_include('php', self::MODULE_NAME, 'classes/Json');
     $rows = array();
     $servicesJson = Json::request(self::SERVICES_JSON_URL);
     if ($servicesJson != NULL) {
similarity index 100%
rename from Json.php
rename to classes/Json.php