I'm doing some maintenance on a an installation profile I wrote for my small team. One of the annoyances that I am trying to remove is the confirmation page after the install is finished ("Congratulations! You have successfully installed Drupal"). Is there any to skip this page if the install is successful?

So far, the core install_finished function, seems to be the only thing I can find that actually handles this step. But I'd rather not kill kittens over this : )


I've never tried it but the docs for hook_install_tasks_alter() suggest it's possible since install_finished() it one of those tasks

Alter the full list of installation tasks.


$tasks: An array of all available installation tasks, including those provided by Drupal core. You can modify this array to change or replace any part of the Drupal installation process that occurs after the installation profile is selected.

So in theory you should be able to replace the function for that entry with one that performs a redirect instead

function MYPROFILE_install_tasks_alter(&$tasks, $install_state) {
  $tasks['install_finished']['function'] = 'MYPROFILE_install_finished';

function MYPROFILE_install_finished(&$install_state) {
  // install_finished() still needs to run but we can discard the output.
  • 1
    I've done this type of install profile stuff (look through my answers here). The only tough part is that these functions have to go into their own install profile which has other pre-requisites beyond what you've described here. But this is the core change thats important! :) – tenken Aug 12 '13 at 14:48
  • I've included this in the .install of my installation profile and it is working wonderfully. Thanks! – Nick Tomlin Aug 12 '13 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.