18.10.2016 Views

Drupal 7 Module Development

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 12<br />

'locale' => 'en',<br />

),<br />

// The values to use in each of the forms.<br />

'forms' => array(<br />

'install_settings_form' => array(<br />

'driver' => 'sqlite',<br />

'database' => 'test',<br />

'username' => '',<br />

'password' => '',<br />

'host' => 'localhost',<br />

'port' => '',<br />

'db_prefix' => '',<br />

),<br />

// The site configuration form.<br />

'install_configure_form' => array(<br />

'site_name' => '<strong>Drupal</strong> Site',<br />

'site_mail' => 'email@example.com',<br />

'account' => array(<br />

'name' => 'admin',<br />

'mail' => 'email@example.com',<br />

'pass' => array(<br />

// On the form there are two password fields. The<br />

// installer is filling out the form so we need to<br />

// fill in both form fields.<br />

'pass1' => 'password',<br />

'pass2' => 'password',<br />

),<br />

),<br />

// The default country and timezone.<br />

'site_default_country' => 'US',<br />

'date_default_timezone' => 'America/Detroit',<br />

// Enable clean URLs.<br />

'clean_url' => TRUE,<br />

// Check for updates using the Update manager.<br />

// Possible values are:<br />

// - array() = off,<br />

// - array(1) = check for updates,<br />

// - array(1, 2) = check for updates and notify by<br />

// email<br />

[ 361 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!