function hook_acsf_duplication_scrub_context_alter in Acquia Cloud Site Factory Connector 8
Same name and namespace in other branches
- 8.2 acsf_duplication/acsf_duplication.api.php \hook_acsf_duplication_scrub_context_alter()
Alters the scrub event context of `drush acsf-duplication-scrub-batch`.
Use this alter hook to add optional data to the scrub event. The data added here is available via the $this->event->context array in event handlers.
Parameters
array $context: An associative array of context data needed in the event handlers.
See also
drush_acsf_duplication_scrub_batch()
1 function implements hook_acsf_duplication_scrub_context_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- acsf_duplication_acsf_duplication_scrub_context_alter in acsf_duplication/
acsf_duplication.module - Alters the scrub event context of `drush acsf-duplication-scrub-batch`.
1 invocation of hook_acsf_duplication_scrub_context_alter()
- drush_acsf_duplication_scrub_batch in acsf_duplication/
acsf_duplication.drush.inc - Command callback. Scrubs some data on the duplicated site.
File
- acsf_duplication/
acsf_duplication.api.php, line 37 - Documents hooks provided by the ACSF Duplication module.
Code
function hook_acsf_duplication_scrub_context_alter(array &$context) {
$context['scrub_options']['retain_users'] = drush_get_option('exact-copy');
$context['scrub_options']['retain_content'] = drush_get_option('exact-copy');
}