protected static function PendingDbUpdates::areDbUpdatesPending in Automatic Updates 7
Checks if there are pending database updates.
Return value
bool TRUE if there are pending updates, otherwise FALSE.
1 call to PendingDbUpdates::areDbUpdatesPending()
- PendingDbUpdates::run in ReadinessCheckers/
PendingDbUpdates.php - Run check.
File
- ReadinessCheckers/
PendingDbUpdates.php, line 26
Class
- PendingDbUpdates
- Pending database updates checker.
Code
protected static function areDbUpdatesPending() {
require_once DRUPAL_ROOT . '/includes/install.inc';
require_once DRUPAL_ROOT . '/includes/update.inc';
drupal_load_updates();
return (bool) update_get_update_list();
}