public function DatabaseTasks_sqlite::getFormOptions
public DatabaseTasks_sqlite::getFormOptions($database)
Return driver specific configuration options.
Parameters
$database: An array of driver specific configuration options.
Return value
The options form array.
Overrides DatabaseTasks::getFormOptions
File
- includes/database/sqlite/install.inc, line 22
- SQLite specific install functions
Class
Code
public function getFormOptions($database) { $form = parent::getFormOptions($database); // Remove the options that only apply to client/server style databases. unset($form['username'], $form['password'], $form['advanced_options']['host'], $form['advanced_options']['port']); // Make the text more accurate for SQLite. $form['database']['#title'] = st('Database file'); $form['database']['#description'] = st('The absolute path to the file where @drupal data will be stored. This must be writable by the web server and should exist outside of the web root.', array('@drupal' => drupal_install_profile_distribution_name())); $default_database = conf_path(FALSE, TRUE) . '/files/.ht.sqlite'; $form['database']['#default_value'] = empty($database['database']) ? $default_database : $database['database']; return $form; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!sqlite!install.inc/function/DatabaseTasks_sqlite::getFormOptions/7.x