You are here

function services_get_keys in Services 5

Same name and namespace in other branches
  1. 6 services.module \services_get_keys()
4 calls to services_get_keys()
services_admin_browse_get_first_key in ./services_admin_browse.inc
services_admin_keys_list in ./services_admin_keys.inc
@file The file contains code which is used to create the keys interface
services_crossdomain_xml in ./services.module
services_get_key in ./services.module

File

./services.module, line 565
The module which provides the core code for drupal services

Code

function services_get_keys() {
  static $keys;
  if (!$keys) {
    $keys = array();
    $result = db_query("SELECT * FROM {services_keys}");
    while ($key = db_fetch_object($result)) {
      $keys[$key->kid] = $key;
    }
  }
  return $keys;
}