You are here

restful.api.php in RESTful 7

Same filename and directory in other branches
  1. 7.2 restful.api.php

Hooks provided by the RESTful module.

File

restful.api.php
View 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

Namesort descending Description
hook_restful_parse_request_alter Allow altering the request before it is processed.