function node_update_7009
7.x node.install | node_update_7009() |
Convert node languages from the empty string to LANGUAGE_NONE.
Related topics
File
- drupal-7.x/
modules/ node/ node.install, line 808 - 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();
}