Version 1
[yaffs-website] / web / core / modules / config / tests / config_import_test / config_import_test.module
1 <?php
2
3 /**
4  * @file
5  * Provides configuration import test helpers.
6  */
7
8 /**
9  * Implements hook_config_import_steps_alter().
10  */
11 function config_import_test_config_import_steps_alter(&$sync_steps) {
12   $sync_steps[] = '_config_import_test_config_import_steps_alter';
13 }
14
15 /**
16  * Implements configuration synchronization step added by an alter for testing.
17  *
18  * @param array $context
19  *   The batch context.
20  */
21 function _config_import_test_config_import_steps_alter(&$context) {
22   $GLOBALS['hook_config_test']['config_import_steps_alter'] = TRUE;
23   $context['finished'] = 1;
24   return;
25 }