You are here

registration_test_api.module in Entity Registration 8

Test hooks for Registration module.

File

tests/registration_test_api/registration_test_api.module
View 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