config_test.hooks.inc

Fake third-party hook implementations for ConfigTest entities.

Testing the module/hook system is not the purpose of this test helper module. Therefore, this file implements hooks on behalf of config_test module for config_test entity hooks themselves.

File

drupal/core/modules/config/tests/config_test/config_test.hooks.inc
View source
<?php

/**
 * @file
 * Fake third-party hook implementations for ConfigTest entities.
 *
 * Testing the module/hook system is not the purpose of this test helper module.
 * Therefore, this file implements hooks on behalf of config_test module for
 * config_test entity hooks themselves.
 */

/**
 * Implements hook_config_test_load().
 */
function config_test_config_test_load() {
  $GLOBALS['hook_config_test']['load'] = __FUNCTION__;
}

/**
 * Implements hook_config_test_presave().
 */
function config_test_config_test_presave() {
  $GLOBALS['hook_config_test']['presave'] = __FUNCTION__;
}

/**
 * Implements hook_config_test_insert().
 */
function config_test_config_test_insert() {
  $GLOBALS['hook_config_test']['insert'] = __FUNCTION__;
}

/**
 * Implements hook_config_test_update().
 */
function config_test_config_test_update() {
  $GLOBALS['hook_config_test']['update'] = __FUNCTION__;
}

/**
 * Implements hook_config_test_predelete().
 */
function config_test_config_test_predelete() {
  $GLOBALS['hook_config_test']['predelete'] = __FUNCTION__;
}

/**
 * Implements hook_config_test_delete().
 */
function config_test_config_test_delete() {
  $GLOBALS['hook_config_test']['delete'] = __FUNCTION__;
}

Functions

Namesort descending Description
config_test_config_test_delete Implements hook_config_test_delete().
config_test_config_test_insert Implements hook_config_test_insert().
config_test_config_test_load Implements hook_config_test_load().
config_test_config_test_predelete Implements hook_config_test_predelete().
config_test_config_test_presave Implements hook_config_test_presave().
config_test_config_test_update Implements hook_config_test_update().