FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 9ca1a37a authored by thewilkybarkid's avatar thewilkybarkid
Browse files

Move base install code to a separate file

parent 1f54f85a
No related branches found
No related tags found
No related merge requests found
......@@ -13,9 +13,9 @@
* @see system_install()
*/
function cambridge_install() {
require_once 'cambridge_lite.install';
require_once 'cambridge_base.inc';
cambridge_lite_install();
cambridge_base_install();
// Force a main-menu link on Basic Pages.
variable_set('menu_force_page', TRUE);
......
......@@ -11,13 +11,7 @@
* Allows the profile to alter the site configuration form.
*/
function cambridge_form_install_configure_form_alter(&$form, $form_state) {
// Pre-populate the default country with United Kingdom.
$form['server_settings']['site_default_country']['#default_value'] = 'GB';
require_once 'cambridge_base.inc';
// Make sure the timezone is Europe/London.
$form['server_settings']['date_default_timezone']['#default_value'] = 'Europe/London';
unset($form['server_settings']['date_default_timezone']['#attributes']['class']);
// Only check for updates, no need for email notifications.
$form['update_notifications']['update_status_module']['#default_value'] = array(1);
cambridge_base_install_configure_form_alter($form, $form_state);
}
This diff is collapsed.
This diff is collapsed.
......@@ -11,13 +11,7 @@
* Allows the profile to alter the site configuration form.
*/
function cambridge_lite_form_install_configure_form_alter(&$form, $form_state) {
// Pre-populate the default country with United Kingdom.
$form['server_settings']['site_default_country']['#default_value'] = 'GB';
require_once 'cambridge_base.inc';
// Make sure the timezone is Europe/London.
$form['server_settings']['date_default_timezone']['#default_value'] = 'Europe/London';
unset($form['server_settings']['date_default_timezone']['#attributes']['class']);
// Only check for updates, no need for email notifications.
$form['update_notifications']['update_status_module']['#default_value'] = array(1);
cambridge_base_install_configure_form_alter($form, $form_state);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment