You are here

function clients_resources_load in Web Service Clients 6

Same name and namespace in other branches
  1. 7 clients.module \clients_resources_load()

Loads all resources

Return value

Array

3 calls to clients_resources_load()
clients_resources in ./clients.module
clients_views_views_data in clients/clients_views/clients_views.module
FeedsClientsParser::configForm in clients/clients_feeds/FeedsClientsParser.inc
Build configuration form.

File

./clients.module, line 610
Clients module - handles keys and service connections and provides an API for clients @author Django Beatty - adub

Code

function clients_resources_load() {
  $resources = array();
  $result = db_query("SELECT * FROM {clients_resources} ORDER BY name");
  while ($data = db_fetch_object($result)) {
    $resources[$data->rid] = array(
      'name' => $data->name,
      'connection' => $data->cid,
    );
  }
  return $resources;
}