You are here

function brainstorm_profile_install_tasks_alter in Brainstorm profile 8

Same name and namespace in other branches
  1. 7 brainstorm_profile.profile \brainstorm_profile_install_tasks_alter()

Implements hook_profile_install_tasks_alter().

File

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

Code

function brainstorm_profile_install_tasks_alter(&$tasks, $install_state) {
  foreach ($install_state as $state) {
    switch ($state) {
      case 'install_bootstrap_full':
        $source = __DIR__ . '/libraries/';
        $res = 'libraries/';
        brainstorm_profile_recurse_copy($source, $res);
        drupal_get_messages();
        break;
      case 'install_profile_themes':
        brainstorm_profile_create_blocks();
        drupal_get_messages();
        break;
    }
  }
}