restful.api.php in RESTful 7
Same filename and directory in other branches
Hooks provided by the RESTful module.
File
restful.api.phpView source
<?php
/**
* @file
* Hooks provided by the RESTful module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Allow altering the request before it is processed.
*
* @param $request
* The request array.
*/
function hook_restful_parse_request_alter(&$request) {
$request['__application'] += array(
'some_header' => \RestfulManager::getRequestHttpHeader('X-Some-Header'),
);
}
/**
* @} End of "addtogroup hooks".
*/
Functions
Name | Description |
---|---|
hook_restful_parse_request_alter | Allow altering the request before it is processed. |