config_import_test.module 584 B

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