function block_language_delete

Implements hook_language_delete().

Delete the potential block visibility settings of the deleted language.

File

drupal/core/modules/block/block.module, line 1085
Controls the visual building blocks a page is constructed with.

Code

function block_language_delete($language) {

  // Remove the block visibility settings for the deleted language.
  db_delete('block_language')
    ->condition('langcode', $language->langcode)
    ->execute();
}