You are here

function social_install_finished in Open Social 8.6

Same name and namespace in other branches
  1. 8 social.profile \social_install_finished()
  2. 8.2 social.profile \social_install_finished()
  3. 8.3 social.profile \social_install_finished()
  4. 8.4 social.profile \social_install_finished()
  5. 8.5 social.profile \social_install_finished()
  6. 8.7 social.profile \social_install_finished()

Performs final installation steps and displays a 'finished' page.

Parameters

array $install_state: An array of information about the current installation state.

See also

install_finished()

1 string reference to 'social_install_finished'
social_install_tasks_alter in ./social.profile
Implements hook_install_tasks_alter().

File

./social.profile, line 383
Enables modules and site configuration for a social site installation.

Code

function social_install_finished(array &$install_state) {

  // Clear all status messages generated by modules installed in previous step.
  drupal_get_messages('status', TRUE);
  if ($install_state['interactive']) {

    // Load current user and perform final login tasks.
    // This has to be done after drupal_flush_all_caches()
    // to avoid session regeneration.
    $account = User::load(1);
    user_login_finalize($account);
  }
}