You are here

update.php in Skinr 8.2

Same filename and directory in other branches
  1. 7.2 tests/update.php

Simulates cache clearing while running update script.

File

tests/update.php
View source
<?php

/**
 * @file
 * Simulates cache clearing while running update script.
 */

/**
 * Global flag indicating that update.php is being run.
 *
 * When this flag is set, various operations do not take place, such as invoking
 * hook_init() and hook_exit(), css/js preprocessing, and translation.
 */
define('MAINTENANCE_MODE', 'update');

/**
 * Defines the root directory of the Drupal installation.
 */
define('DRUPAL_ROOT', $_GET['drupal_root']);
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
skinr_cache_reset();
skinr_implements_api();

Constants

Namesort descending Description
DRUPAL_ROOT Defines the root directory of the Drupal installation.
MAINTENANCE_MODE Global flag indicating that update.php is being run.