function services_client_get_connection_id in Services Client 7.2
Same name and namespace in other branches
- 7 services_client.module \services_client_get_connection_id()
Load remote services client id for connection
1 call to services_client_get_connection_id()
File
- ./
services_client.module, line 351
Code
function services_client_get_connection_id($name) {
$cache =& drupal_static(__FUNCTION__);
if (!isset($cache[$name])) {
$sql = "SELECT services_client_id FROM {services_client_connection_id} WHERE name = :name";
$cache[$name] = db_query($sql, array(
':name' => $name,
))
->fetchField();
}
return isset($cache[$name]) ? $cache[$name] : NULL;
}