23 lines
541 B
Plaintext
23 lines
541 B
Plaintext
<?php
|
|
// $Id$
|
|
|
|
/**
|
|
* @file
|
|
* Helper module for entity cache tests.
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_watchdog().
|
|
*
|
|
* This function is called during module_enable() and tries to access entity
|
|
* information provided by the module this one depends on. The information is
|
|
* stored in a temporary system variable and is later analyzed in the test
|
|
* case.
|
|
*
|
|
* @see EnableDisableTestCase::testEntityCache()
|
|
*/
|
|
function entity_cache_test_watchdog() {
|
|
$info = entity_get_info('entity_cache_test');
|
|
variable_set('entity_cache_test', $info);
|
|
}
|