function services_client_error_load in Services Client 7.2
Same name and namespace in other branches
- 7 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.
2 calls to services_client_error_load()
- ServicesClientErrorWebTestCase::loadError in services_client_error/
tests/ services_client_error.test - 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 305 - 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['entity'] = unserialize($result['entity']);
}
return $result;
}