You are here

function hosting_feature_rebuild_caches in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 hosting.features.inc \hosting_feature_rebuild_caches()

Perform necessary task after enabling or disabling Hosting features.

2 calls to hosting_feature_rebuild_caches()
hosting_features_disable in ./hosting.features.inc
Disable one or more Hosting features.
hosting_features_enable in ./hosting.features.inc
Enable one or more Hosting features.

File

./hosting.features.inc, line 534
Include for functionality related to Hosting module features.

Code

function hosting_feature_rebuild_caches($features = array()) {

  // Rebuild schema.
  drupal_get_schema(NULL, TRUE);

  // Rebuild menu.
  menu_rebuild();

  // Record enabled features in the Hosting features registry (in
  // /var/aegir/.drush/drushrc.php)
  // Allow scripts to skip automatic verify tasks by passing '--no-verify'
  if (function_exists('drush_get_option') && drush_get_option('no-verify', FALSE)) {
    return;
  }
  if ($nid = hosting_get_hostmaster_site_nid()) {
    hosting_add_task($nid, 'verify');
  }
}