You are here

function thunder_install_tasks in Thunder 8.5

Same name and namespace in other branches
  1. 8.2 thunder.profile \thunder_install_tasks()
  2. 8.3 thunder.profile \thunder_install_tasks()
  3. 8.4 thunder.profile \thunder_install_tasks()
  4. 6.2.x thunder.profile \thunder_install_tasks()
  5. 6.0.x thunder.profile \thunder_install_tasks()
  6. 6.1.x thunder.profile \thunder_install_tasks()

Implements hook_install_tasks().

File

./thunder.profile, line 28
Enables modules and site configuration for a thunder site installation.

Code

function thunder_install_tasks(&$install_state) {
  $tasks = [];
  if (empty($install_state['config_install_path'])) {
    $tasks['thunder_module_configure_form'] = [
      'display_name' => t('Configure additional modules'),
      'type' => 'form',
      'function' => 'Drupal\\thunder\\Installer\\Form\\ModuleConfigureForm',
    ];
    $tasks['thunder_module_install'] = [
      'display_name' => t('Install additional modules'),
      'type' => 'batch',
    ];
  }
  $tasks['thunder_finish_installation'] = [
    'display_name' => t('Finish installation'),
  ];
  return $tasks;
}