summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-13 07:09:26 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-13 07:09:26 +0000
commit89580246ee27d13c943172e4956fa266bcf8754a (patch)
tree35f046ff287e25ae4b63ffa1b96cde2b746353ca /modules
parent1d09ec33bdcbcc761a6526e8982859600bd6958e (diff)
downloadbrdo-89580246ee27d13c943172e4956fa266bcf8754a.tar.gz
brdo-89580246ee27d13c943172e4956fa266bcf8754a.tar.bz2
#559294 by David_Rothstein: Allow install profiles to alter or override the task list.
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.api.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 186899273..2826cdbc6 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -2175,7 +2175,7 @@ function hook_registry_files_alter(&$files, $module_cache) {
* @see install_state_defaults()
* @see batch_set()
*/
-function hook_profile_tasks() {
+function hook_install_tasks() {
// Here, we define a variable to allow tasks to indicate that a particular,
// processor-intensive batch process needs to be triggered later on in the
// installation.
@@ -2257,6 +2257,23 @@ function hook_drupal_goto_alter(array $args) {
}
/**
+ * Alter the full list of installation tasks.
+ *
+ * @param $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.
+ * @param $install_state
+ * An array of information about the current installation state.
+ */
+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';
+}
+
+/**
* Alter MIME type mappings used to determine MIME type from a file extension.
*
* This hook is run when file_mimetype_mapping() is called. It is used to