Révision 582db59d
Ajouté par Assos Assos il y a plus de 8 ans
drupal7/modules/simpletest/tests/drupal_autoload_test/drupal_autoload_test.module | ||
---|---|---|
4 | 4 |
* @file |
5 | 5 |
* Test module to check code registry. |
6 | 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 |
} |
Formats disponibles : Unified diff
Update Drupal core to version 7.40