You are here

function social_install_tasks in Open Social 8.6

Same name and namespace in other branches
  1. 8.9 social.profile \social_install_tasks()
  2. 8 social.profile \social_install_tasks()
  3. 8.2 social.profile \social_install_tasks()
  4. 8.3 social.profile \social_install_tasks()
  5. 8.4 social.profile \social_install_tasks()
  6. 8.5 social.profile \social_install_tasks()
  7. 8.7 social.profile \social_install_tasks()
  8. 8.8 social.profile \social_install_tasks()
  9. 10.3.x social.profile \social_install_tasks()
  10. 10.0.x social.profile \social_install_tasks()
  11. 10.1.x social.profile \social_install_tasks()
  12. 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;
}