-
Notifications
You must be signed in to change notification settings - Fork 0
/
ting.api.php
37 lines (35 loc) · 919 Bytes
/
ting.api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* @file
* Hooks provided by the Ting module.
*/
/**
* Set additional parameters to ting request.
*
* @param object $request
* ting_execute request.
*
* @return array
* Array containing key=>value pairs. Key is the name of the parameter.
*/
function hook_ting_pre_execute($request) {
// In case you need to add additional parameters to request.
return array('includeMarcXchange' => TRUE);
}
/**
* Set extra properties to resulting object.
*
* @param object $request
* ting_execute request.
* @param object $response
* ting_execute result.
* @param object $raw_response
* Raw response from ting.
*
* @return array
* Array containing key=>value pairs. Key is the name of the property.
*/
function hook_ting_post_execute($request, $response, $raw_response) {
// Add additional property to resulting object.
return array('marcexchange' => array('marcxchange data'));
}