You are here

required_by_role_callback_test.module in Required by role 7

Module for testing the callback behavior.

File

tests/required_by_role_callback_test/required_by_role_callback_test.module
View source
<?php

/**
 * @file
 * Module for testing the callback behavior.
 */

/**
 * Implements hook_required_by_role_callback_alter.
 */
function required_by_role_callback_test_required_by_role_callback_alter(&$callback) {
  $callback = 'required_by_role_callback_test_required_callback';
}

/**
 * Test callback for hook_required_by_role_callback_alter.
 */
function required_by_role_callback_test_required_callback($account, $roles, $context, $form_state) {
  return TRUE;
}

Functions

Namesort descending Description
required_by_role_callback_test_required_by_role_callback_alter Implements hook_required_by_role_callback_alter.
required_by_role_callback_test_required_callback Test callback for hook_required_by_role_callback_alter.