Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: 7.x-1.x
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (19 sloc) 0.626 kB
<?php
/**
* Implements hook_form_FORM_ID_alter().
*
* Allows the profile to alter the site configuration form.
*/
function system_form_install_configure_form_alter(&$form, $form_state) {
// Pre-populate the site name with the server name.
$form['site_information']['site_name']['#default_value'] = 'Learning Drupal Training Company';
}
/**
* Implements hook_form_alter().
*/
function system_form_install_select_profile_form_alter(&$form, $form_state) {
// select learn_drupal install profile by default
foreach ($form['profile'] as $key => $element) {
$form['profile'][$key]['#value'] = 'learn_drupal';
}
}
Jump to Line
Something went wrong with that request. Please try again.