update_script_test.module

Same filename in other branches
  1. 9 core/modules/system/tests/modules/update_script_test/update_script_test.module
  2. 8.9.x core/modules/system/tests/modules/update_script_test/update_script_test.module
  3. 10 core/modules/system/tests/modules/update_script_test/update_script_test.module
  4. 11.x core/modules/system/tests/modules/update_script_test/update_script_test.module

This file provides testing functionality for update.php.

File

modules/simpletest/tests/update_script_test.module

View source
<?php


/**
 * @file
 * This file provides testing functionality for update.php.
 */

/**
 * Implements hook_flush_caches().
 *
 * This sets a message to confirm that all caches are cleared whenever
 * update.php completes.
 *
 * @see UpdateScriptFunctionalTest::testRequirements()
 */
function update_script_test_flush_caches() {
    drupal_set_message(t('hook_flush_caches() invoked for update_script_test.module.'));
}

Functions

Title Deprecated Summary
update_script_test_flush_caches Implements hook_flush_caches().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.