Implements hook_language_delete().
Delete the potential block visibility settings of the deleted language.
function block_language_delete($language) {
// Remove the block visibility settings for the deleted language.
db_delete('block_language')
->condition('langcode', $language->langcode)
->execute();
}