function thunder_install_tasks in Thunder 6.2.x
Same name and namespace in other branches
- 8.5 thunder.profile \thunder_install_tasks()
- 8.2 thunder.profile \thunder_install_tasks()
- 8.3 thunder.profile \thunder_install_tasks()
- 8.4 thunder.profile \thunder_install_tasks()
- 6.0.x thunder.profile \thunder_install_tasks()
- 6.1.x thunder.profile \thunder_install_tasks()
Implements hook_install_tasks().
File
- ./
thunder.profile, line 27 - 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;
}