function install_verify_completed_task
Same name in other branches
- 9 core/includes/install.core.inc \install_verify_completed_task()
- 8.9.x core/includes/install.core.inc \install_verify_completed_task()
- 10 core/includes/install.core.inc \install_verify_completed_task()
- 11.x core/includes/install.core.inc \install_verify_completed_task()
Verifies and returns the last installation task that was completed.
Return value
The last completed task, if there is one. An exception is thrown if Drupal is already installed.
2 calls to install_verify_completed_task()
- install_begin_request in includes/
install.core.inc - Begins an installation request, modifying the installation state as needed.
- install_settings_form_submit in includes/
install.core.inc - Form submission handler for install_settings_form().
File
-
includes/
install.core.inc, line 828
Code
function install_verify_completed_task() {
try {
if ($result = db_query("SELECT value FROM {variable} WHERE name = :name", array(
'name' => 'install_task',
))) {
$task = unserialize($result->fetchField());
}
} catch (Exception $e) {
}
if (isset($task)) {
if ($task == 'done') {
throw new Exception(install_already_done_error());
}
return $task;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.