2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
// Enable language column if translation module is enabled
// or if we have any node with language.
$multilanguage=(module_exists('translation')||db_query("SELECT COUNT(*) FROM {node} WHERE language <> :language",array(':language'=>LANGUAGE_NONE))->fetchField());
// Enable language column if translation module is enabled or if we have any
// node with language.
$multilanguage=(module_exists('translation')||db_query_range("SELECT 1 FROM {node} WHERE language <> :language",0,1,array(':language'=>LANGUAGE_NONE))->fetchField());