function services_client_error_load in Services Client 7
Same name and namespace in other branches
- 7.2 services_client_error/services_client_error.module \services_client_error_load()
Load error by id.
Parameters
int $eid: ID of error.
Return value
array Error record by {services_client_error} data.
1 call to services_client_error_load()
- services_client_error_task_retry_call in services_client_error/
services_client_error.tasks.inc - Re-try to send data to remote connection on services client failure.
File
- services_client_error/
services_client_error.module, line 290 - Services Client error handling, re-try and reporting.
Code
function services_client_error_load($eid) {
$result = db_query("SELECT * FROM {services_client_error} WHERE eid = :eid", array(
':eid' => $eid,
))
->fetchAssoc();
if ($result) {
$result['data'] = unserialize($result['data']);
}
return $result;
}