You are here

function clients_resources_load in Web Service Clients 7

Same name and namespace in other branches
  1. 6 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 632
Clients module - handles keys and service connections and provides an API for clients

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;
}