From 9db6cb8d429a99da2de7898760f7a79d2d7a940c Mon Sep 17 00:00:00 2001
From: fago <nuppla@zites.net>
Date: Fri, 20 Jan 2012 23:59:53 +0100
Subject: [PATCH 2/4] removed deprecated hook_default_wsclient_alter()
 implementation as exportables are now always loaded
 from the db

---
 wsclient.inc |   21 ++++++++-------------
 1 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/wsclient.inc b/wsclient.inc
index 4299ed5..3915da8 100644
--- a/wsclient.inc
+++ b/wsclient.inc
@@ -276,15 +276,17 @@ class WSClientServiceDescription extends Entity {
 
   /**
    * Loads the stored info for the given web service objects.
+   *
+   * @see wsclient_wsclient_service_load()
    */
   public static function attachLoad($services) {
     if (empty($services)) {
       return;
     }
     $result = db_select('wsclient_info', 'r')
-    ->fields('r')
-    ->condition('name', array(array_keys($services)))
-    ->execute();
+      ->fields('r')
+      ->condition('name', array(array_keys($services)))
+      ->execute();
 
     foreach ($result as $record) {
       $services[$record->name]->cache = unserialize($record->info);
@@ -293,9 +295,9 @@ class WSClientServiceDescription extends Entity {
 
     // Load subscribed events.
     $result = db_select('wsclient_subscriptions', 'r')
-    ->fields('r')
-    ->condition('name', array(array_keys($services)))
-    ->execute();
+      ->fields('r')
+      ->condition('name', array(array_keys($services)))
+      ->execute();
     foreach ($result as $record) {
       $services[$record->name]->subscriptions[$record->event] = TRUE;
     }
@@ -310,13 +312,6 @@ function wsclient_wsclient_service_load($services) {
 }
 
 /**
- * Implements hook_default_wsclient_service_alter().
- */
-function wsclient_default_wsclient_service_alter($services) {
-  WSClientServiceDescription::attachLoad($services);
-}
-
-/**
  * Interface for remote endpoints. In case of any errors the implementing
  * classes should throw exceptions.
  */
-- 
1.7.5.4

