diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-28 12:13:47 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-28 12:13:47 +0000 |
commit | aab51b93194701c45e32e63be31a979c9d9754aa (patch) | |
tree | c10b982d45fdfbc8ec711fbf256d2206c6a5f853 /profiles | |
parent | 1115fba0649997f77a70eb4d03b1e4ab1df2d56e (diff) | |
download | brdo-aab51b93194701c45e32e63be31a979c9d9754aa.tar.gz brdo-aab51b93194701c45e32e63be31a979c9d9754aa.tar.bz2 |
- Patch #524728 by David_Rothstein, JoshuaRogers, JacobSingh et al: refactor install.php to allow Drupal to be installed from the command line.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/default/default.profile | 19 | ||||
-rw-r--r-- | profiles/expert/expert.profile | 18 |
2 files changed, 35 insertions, 2 deletions
diff --git a/profiles/default/default.profile b/profiles/default/default.profile index 975162260..62e0cf79b 100644 --- a/profiles/default/default.profile +++ b/profiles/default/default.profile @@ -4,7 +4,24 @@ /** * Implement hook_profile_tasks(). */ -function default_profile_tasks(&$task, $url) { +function default_profile_tasks() { + $tasks = array( + 'default_profile_site_setup' => array(), + ); + return $tasks; +} + +/** + * Installation task; perform actions to set up the site for this profile. + * + * This task does not return any output, meaning that control will be passed + * along to the next task without ending the page request. + * + * @param $install_state + * An array of information about the current installation state. + */ +function default_profile_site_setup(&$install_state) { + // Enable some standard blocks. $values = array( array( diff --git a/profiles/expert/expert.profile b/profiles/expert/expert.profile index a9231e478..aebb6062e 100644 --- a/profiles/expert/expert.profile +++ b/profiles/expert/expert.profile @@ -4,7 +4,23 @@ /** * Implement hook_profile_tasks(). */ -function expert_profile_tasks(&$task, $url) { +function expert_profile_tasks() { + $tasks = array( + 'expert_profile_site_setup' => array(), + ); + return $tasks; +} + +/** + * Installation task; perform actions to set up the site for this profile. + * + * This task does not return any output, meaning that control will be passed + * along to the next task without ending the page request. + * + * @param $install_state + * An array of information about the current installation state. + */ +function expert_profile_site_setup(&$install_state) { // Enable some standard blocks. $values = array( |