1 node.module node_language_delete($language)

Implements hook_language_delete().

File

core/modules/node/node.module, line 3748
The core module that allows content to be submitted to the site.

Code

function node_language_delete($language) {
  // On nodes with this language, unset the language.
  db_update('node')
    ->fields(array('langcode' => ''))
    ->condition('langcode', $language->langcode)
    ->execute();
}