You are here

function deploy_uuid_service_get_book in Deploy - Content Staging 6

1 string reference to 'deploy_uuid_service_get_book'
deploy_uuid_service_service in modules/deploy_uuid/deploy_uuid_service.module
Implementation of hook_service().

File

modules/deploy_uuid/deploy_uuid_service.inc, line 11

Code

function deploy_uuid_service_get_book($uuid) {
  $nid = deploy_uuid_get_key($uuid, 'node');
  $result = db_query("SELECT * FROM {book} WHERE nid = %d", $nid);
  if ($row = db_fetch_array($result)) {
    return $row;
  }
  return array();
}