Error message
You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).function update_fix_compatibility
Same name and namespace in other branches
- 8.9.x core/includes/update.inc \update_fix_compatibility()
Disable any items in the {system} table that are not core compatible.
1 call to update_fix_compatibility()
- update.php in ./
update.php - Administrative page for handling updates from one Drupal version to another.
File
-
includes/
update.inc, line 24
Code
function update_fix_compatibility () {
$incompatible = array();
$result = db_query ("SELECT name, type, status FROM {system} WHERE status = 1 AND type IN ('module','theme')");
foreach ($result as $row) {
if (update_check_incompatibility ($row->name , $row->type )) {
$incompatible[] = $row->name ;
}
}
if (!empty($incompatible)) {
db_update ('system')->fields (array(
'status' => 0,
))
->condition ('name', $incompatible, 'IN')
->execute ();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.