function node_update_7009 in Drupal 7
Convert node languages from the empty string to LANGUAGE_NONE.
Related topics
File
- modules/
node/ node.install, line 809  - Install, update and uninstall functions for the node module.
 
Code
function node_update_7009() {
  db_update('node')
    ->fields(array(
    'language' => LANGUAGE_NONE,
  ))
    ->condition('language', '')
    ->execute();
}