function social_install_finished in Open Social 8.4
Same name and namespace in other branches
- 8 social.profile \social_install_finished()
- 8.2 social.profile \social_install_finished()
- 8.3 social.profile \social_install_finished()
- 8.5 social.profile \social_install_finished()
- 8.6 social.profile \social_install_finished()
- 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
1 string reference to 'social_install_finished'
- social_install_tasks_alter in ./
social.profile - Implements hook_install_tasks_alter().
File
- ./
social.profile, line 374 - 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);
}
}