You are here

function brainstorm_profile_blocks_turning in Brainstorm profile 7

Our custom task. Enable and turning blocks.

Parameters

array $install_state: An array of information about the current installation state.

File

./brainstorm_profile.profile, line 100
Enables modules and site configuration for a standard site installation.

Code

function brainstorm_profile_blocks_turning(array $install_state) {
  $modules = array();
  if (!module_exists('feature_carousel')) {
    $modules[] = 'feature_carousel';
  }
  if (!module_exists('feature_block')) {
    $modules[] = 'feature_block';
  }
  if (!module_exists('feature_menu')) {
    $modules[] = 'feature_menu';
  }
  if (!empty($modules)) {
    module_enable($modules);
  }
}