Created
October 29, 2012 11:31
-
-
Save rachellawson/3973063 to your computer and use it in GitHub Desktop.
profile form defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_form_FORM_ID_alter(). | |
* Our usual defaults for a new site | |
*/ | |
function hook_form_install_configure_form_alter(&$form, $form_state) { | |
$form['site_information']['site_name']['#default_value'] = 'Site name'; | |
$form['site_information']['site_mail']['#default_value'] = 'site@email.com'; | |
$form['admin_account']['account']['name']['#default_value'] = 'username'; | |
$form['admin_account']['account']['mail']['#default_value'] = 'username@email.com'; | |
$form['server_settings']['site_default_country']['#default_value'] = 'GB'; | |
$form['server_settings']['site_default_timezone']['#default_value'] = 'Europe/London'; | |
$form['update_notifications']['update_status_module']['#default_value'] = array(1 => TRUE, 2 => FALSE); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment