function clients_connection_load_all in Web Service Clients 7.3
Same name and namespace in other branches
- 6.2 clients.module \clients_connection_load_all()
- 7.2 clients.module \clients_connection_load_all()
Load all connections.
TODO!
Parameters
$types: (optional) Specify a single type or a list of types to include. If omitted, all are returned.
Return value
An array of connection objects, keyed by name.
2 calls to clients_connection_load_all()
- clients_connections_checkbox_options in ./
clients.module - FormAPI helper to get a list of clients for a checkboxes form element.
- clients_connections_select_options in ./
clients.module - FormAPI helper to get a list of clients for a select form element.
File
- ./
clients.module, line 234 - 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_connection_load_all($types = array()) {
$connections = entity_load_multiple_by_name('clients_connection', FALSE);
// We generally want connections ordered by machine name.
ksort($connections);
return $connections;
}