You are here

function wsclient_get_types in Web service client 7

Gets all defined remote endpoint types.

3 calls to wsclient_get_types()
WSClientFeaturesController::export in ./wsclient.features.inc
Generates the result for hook_features_export().
WSClientServiceDescription::endpoint in ./wsclient.inc
Returns the associated web service endpoint object.
wsclient_service_form in wsclient_ui/wsclient_ui.inc
Provides a form to add, edit and clone web service descriptions.

File

./wsclient.module, line 69
Web service client - module file.

Code

function wsclient_get_types() {
  $data = array();
  foreach (module_implements('wsclient_endpoint_types') as $module) {
    $result = call_user_func($module . '_wsclient_endpoint_types');
    if (isset($result) && is_array($result)) {
      foreach ($result as $name => $item) {
        $item += array(
          'module' => $module,
        );
        $data[$name] = $item;
      }
    }
  }
  drupal_alter('wsclient_endpoint_types', $data);
  return $data;
}