You are here

function clients_resource_load in Web Service Clients 7.3

Same name and namespace in other branches
  1. 6 clients.module \clients_resource_load()
  2. 7 clients.module \clients_resource_load()

Load a resource object.

Parameters

$name: A connection machine name.

Return value

A fully loaded connection handler object. If there is a problem, such as the machine name or connection type not existing, a connection of the class defined for broken handlers in hook_entity_info() is returned.

1 call to clients_resource_load()
clients_resource_get_for_component in ./clients.module
Get the resource for a given component.
1 string reference to 'clients_resource_load'
clients_resource_form in includes/clients.resource.admin.inc
Resource form.

File

./clients.module, line 48
Clients module provides a UI, storage, and an API for handling connections to remote webservices, including those provided by Services module on other Drupal sites.

Code

function clients_resource_load($name) {
  return entity_load_single('clients_resource', $name);
}