registration_test_api.module in Entity Registration 8
Same filename and directory in other branches
Test hooks for Registration module.
File
tests/registration_test_api/registration_test_api.moduleView source
<?php
/**
* @file
* Test hooks for Registration module.
*/
/**
* Implements hook_registration_status().
*/
function registration_test_api_registration_status_alter(&$status, &$context) {
$var = variable_get(__FUNCTION__);
if (isset($var)) {
$status = $var;
}
}
/**
* Implements hook_registration_access().
*/
function registration_test_api_registration_access($op, $entity_type, $registration, $account) {
if (isset($registration->hook_registration_access)) {
return $registration->hook_registration_access;
}
}
Functions
Name | Description |
---|---|
registration_test_api_registration_access | Implements hook_registration_access(). |
registration_test_api_registration_status_alter | Implements hook_registration_status(). |