You are here

public function DatabaseTasks_sqlsrv::getFormOptions in Drupal driver for SQL Server and SQL Azure 7

Same name and namespace in other branches
  1. 7.3 sqlsrv/install.inc \DatabaseTasks_sqlsrv::getFormOptions()
  2. 7.2 sqlsrv/install.inc \DatabaseTasks_sqlsrv::getFormOptions()

Return driver specific configuration options.

Parameters

$database: An array of driver specific configuration options.

Return value

The options form array.

Overrides DatabaseTasks::getFormOptions

File

sqlsrv/install.inc, line 168

Class

DatabaseTasks_sqlsrv

Code

public function getFormOptions($database) {
  $form = parent::getFormOptions($database);

  // Make username not required.
  $form['username']['#required'] = FALSE;

  // Add a description for about leaving username blank.
  $form['username']['#description'] = t('Leave username (and password) blank to use Windows authentication.');
  return $form;
}