rest_test.module in Zircon Profile 8
Same filename and directory in other branches
Contains hook implementations for testing REST module.
File
core/modules/rest/tests/modules/rest_test/rest_test.moduleView source
<?php
/**
* @file
* Contains hook implementations for testing REST module.
*/
/**
* Implements hook_rest_type_uri_alter().
*/
function rest_test_rest_type_uri_alter(&$uri, $context = array()) {
if (!empty($context['rest_test'])) {
$uri = 'rest_test_type';
}
}
/**
* Implements hook_rest_relation_uri_alter().
*/
function rest_test_rest_relation_uri_alter(&$uri, $context = array()) {
if (!empty($context['rest_test'])) {
$uri = 'rest_test_relation';
}
}
Functions
Name | Description |
---|---|
rest_test_rest_relation_uri_alter | Implements hook_rest_relation_uri_alter(). |
rest_test_rest_type_uri_alter | Implements hook_rest_type_uri_alter(). |