You are here

function hook_restful_parse_request_alter in RESTful 7

Same name and namespace in other branches
  1. 7.2 restful.api.php \hook_restful_parse_request_alter()

Allow altering the request before it is processed.

Parameters

$request: The request array.

1 function implements hook_restful_parse_request_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

restful_token_auth_restful_parse_request_alter in modules/restful_token_auth/restful_token_auth.module
Implements hook_restful_parse_request_alter()
1 invocation of hook_restful_parse_request_alter()
restful_parse_request in ./restful.module
Build the request array from PHP globals and input stream.

File

./restful.api.php, line 20
Hooks provided by the RESTful module.

Code

function hook_restful_parse_request_alter(&$request) {
  $request['__application'] += array(
    'some_header' => \RestfulManager::getRequestHttpHeader('X-Some-Header'),
  );
}