function panopoly_install_tasks in Panopoly 8.2
Same name and namespace in other branches
- 7 panopoly.profile \panopoly_install_tasks()
Implements hook_install_tasks().
File
- ./
panopoly.install, line 16 - Install, update and uninstall hooks.
Code
function panopoly_install_tasks(&$install_tasks) {
$tasks = [];
// Add a task to install demo content.
$tasks[PanopolyDemoInstallerForm::class] = [
'display_name' => t('Install demo content'),
'type' => 'form',
];
// Add the Panopoly theme selection to the installation process.
module_load_include('inc', 'panopoly_theme', 'panopoly_theme.profile');
$tasks += panopoly_theme_profile_theme_selection_install_task($install_state);
return $tasks;
}