function social_install_tasks in Open Social 8.7
Same name and namespace in other branches
- 8.9 social.profile \social_install_tasks()
- 8 social.profile \social_install_tasks()
- 8.2 social.profile \social_install_tasks()
- 8.3 social.profile \social_install_tasks()
- 8.4 social.profile \social_install_tasks()
- 8.5 social.profile \social_install_tasks()
- 8.6 social.profile \social_install_tasks()
- 8.8 social.profile \social_install_tasks()
- 10.3.x social.profile \social_install_tasks()
- 10.0.x social.profile \social_install_tasks()
- 10.1.x social.profile \social_install_tasks()
- 10.2.x social.profile \social_install_tasks()
Implements hook_install_tasks().
File
- ./
social.profile, line 17 - Enables modules and site configuration for a social site installation.
Code
function social_install_tasks(&$install_state) {
$tasks = [
'social_install_profile_modules' => [
'display_name' => t('Install Open Social modules'),
'type' => 'batch',
],
'social_final_site_setup' => [
'display_name' => t('Apply configuration'),
'type' => 'batch',
'display' => TRUE,
],
'social_theme_setup' => [
'display_name' => t('Apply theme'),
'display' => TRUE,
],
];
return $tasks;
}