public function DatabaseTasks_sqlsrv::getFormOptions in Drupal driver for SQL Server and SQL Azure 7
Same name and namespace in other branches
- 7.3 sqlsrv/install.inc \DatabaseTasks_sqlsrv::getFormOptions()
- 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
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;
}