hook_install_tasks_alter

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 hook_install_tasks_alter(&$tasks, $install_state)

Alter the full list of installation tasks.

Parameters

$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.

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

Related topics

Code

modules/system/system.api.php, line 3616

<?php
function hook_install_tasks_alter(&$tasks, $install_state) {
  // Replace the "Choose language" installation task provided by Drupal core
  // with a custom callback function defined by this installation profile.
  $tasks['install_select_locale']['function'] = 'myprofile_locale_selection';
}
?>