You are here

function services_get_keys in Services 6

Same name and namespace in other branches
  1. 5 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
@author Services Dev Team @file Generate security keys.
services_crossdomain_xml in ./services.module
Callback for crossdomain.xml
services_get_key in ./services.module

File

./services.module, line 490
@author Services Dev Team

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