function varbase_form_install_configure_form_alter in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.3
Same name and namespace in other branches
- 8.8 varbase.profile \varbase_form_install_configure_form_alter()
- 8.4 varbase.profile \varbase_form_install_configure_form_alter()
- 8.5 varbase.profile \varbase_form_install_configure_form_alter()
- 8.6 varbase.profile \varbase_form_install_configure_form_alter()
- 8.7 varbase.profile \varbase_form_install_configure_form_alter()
- 7 varbase.profile \varbase_form_install_configure_form_alter()
- 7.2 varbase.profile \varbase_form_install_configure_form_alter()
- 9.0.x varbase.profile \varbase_form_install_configure_form_alter()
Implements hook_form_FORM_ID_alter() for install_configure_form().
Allows the profile to alter the site configuration form.
File
- ./
varbase.profile, line 12 - Enables modules and site configuration for Varbase site installation.
Code
function varbase_form_install_configure_form_alter(&$form, $form_state) {
// Pre-populate the site name with the server name.
$form['site_information']['site_name']['#default_value'] = $_SERVER['SERVER_NAME'];
$form['admin_account']['account']['name']['#value'] = 'webmaster';
$form['admin_account']['account']['mail']['#default_value'] = 'webmaster@' . $_SERVER['SERVER_NAME'];
}