function DatabaseTasks_sqlite::validateDatabaseSettings

Overrides DatabaseTasks::validateDatabaseSettings

File

includes/database/sqlite/install.inc, line 36

Class

DatabaseTasks_sqlite
@file SQLite specific install functions

Code

public function validateDatabaseSettings($database) {
    // Perform standard validation.
    $errors = parent::validateDatabaseSettings($database);
    // Verify the database is writable.
    $db_directory = new SplFileInfo(dirname($database['database']));
    if (!$db_directory->isWritable()) {
        $errors[$database['driver'] . '][database'] = st('The directory you specified is not writable by the web server.');
    }
    return $errors;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.