/**
  * Implements AcsfEventHandler::handle().
  */
 public function handle()
 {
     drush_print(dt('Entered @class', array('@class' => get_class($this))));
     $enable_for_scrub = acsf_vget('acsf_duplication_enable_for_scrub', array());
     if (!empty($enable_for_scrub)) {
         require_once DRUPAL_ROOT . '/includes/install.inc';
         // Re-disable modules that were disabled prior to starting the scrubbing
         // process, and enabled only for scrubbing.
         module_disable($enable_for_scrub);
         // Uninstall these modules. Drupal will drop their tables and any orphaned
         // data remaining in them.
         drupal_uninstall_modules($enable_for_scrub);
     }
 }
 /**
  * Returns if this step has already completed.
  */
 public function isComplete()
 {
     return acsf_vget('acsf_site_duplication_step_initialize_complete', FALSE);
 }
Esempio n. 3
0
 /**
  * Indicates whether theme notifications are enabled.
  *
  * If this method returns FALSE, theme notifications will not be sent to the
  * Site Factory.
  *
  * @return bool
  *   TRUE if notifications are enabled; FALSE otherwise.
  */
 public function isEnabled()
 {
     return acsf_vget('acsf_theme_enabled', TRUE);
 }