Skip to content

Commit

Permalink
Issue backdrop#4673: Installer: Add message about the admin_bar and d…
Browse files Browse the repository at this point in the history
  • Loading branch information
klonos committed Oct 2, 2020
1 parent 208eacc commit 1103a0e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions core/includes/install.core.inc
Expand Up @@ -1711,10 +1711,20 @@ function install_finished(&$install_state) {
// Will also trigger indexing of profile-supplied content or feeds.
backdrop_cron_run();

$message = st('Thank you for installing @profile!', array('@profile' => backdrop_install_profile_distribution_name()));

if (!backdrop_is_cli()) {
backdrop_set_message($message);
$thank_you_message = st('Thank you for installing @profile!', array('@profile' => backdrop_install_profile_distribution_name()));
backdrop_set_message($thank_you_message);

if (module_exists('admin_bar')) {
$tip_message = st('<strong>Tip:</strong> You can use the admin menu at the top of the page, to navigate around the administrative interface.');
}
if module_exists('dashboard')) {
$tip_message .= st('If you are new to Backdrop, then <a href="@dashboard">the Dashboard</a> may be a good place to start.');
}
if (is_set($tip_message)) {
backdrop_set_message($tip_message, 'info');
}

backdrop_goto('<front>');
}
}
Expand Down

0 comments on commit 1103a0e

Please sign in to comment.