1 system.api.php hook_install_tasks_alter(&$tasks, $install_state)

Alter the full list of installation tasks.

This hook is invoked on the install profile in install_tasks().

You can use this hook to change or replace any part of the Backdrop installation process that occurs after the installation profile is selected.

Parameters

$tasks: An array of all available installation tasks, including those provided by Backdrop core. You can modify this array to change or replace individual steps within the installation process.

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

See also

hook_install_tasks()

install_tasks()

Related topics

File

core/modules/system/system.api.php, line 3480
Hooks provided by Backdrop core and the System module.

Code

function hook_install_tasks_alter(&$tasks, $install_state) {
  // Replace the entire site configuration form provided by Backdrop core
  // with a custom callback function defined by this installation profile.
  $tasks['install_configure_form']['function'] = 'myprofile_install_configure_form';
}