commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / modules / simpletest / tests / drupal_autoload_test / drupal_autoload_test.module
1 <?php
2
3 /**
4 * @file
5 * Test module to check code registry.
6 */
7
8 /**
9 * Implements hook_registry_files_alter().
10 */
11 function drupal_autoload_test_registry_files_alter(&$files, $modules) {
12 foreach ($modules as $module) {
13 // Add the drupal_autoload_test_trait.sh file to the registry when PHP 5.4+
14 // is being used.
15 if ($module->name == 'drupal_autoload_test' && version_compare(PHP_VERSION, '5.4') >= 0) {
16 $files["$module->dir/drupal_autoload_test_trait.sh"] = array(
17 'module' => $module->name,
18 'weight' => $module->weight,
19 );
20 }
21 }
22 }