function language_entity_bundle_delete
Same name in other branches
- 9 core/modules/language/language.module \language_entity_bundle_delete()
- 10 core/modules/language/language.module \language_entity_bundle_delete()
Implements hook_entity_bundle_delete().
File
-
core/
modules/ language/ language.module, line 217
Code
function language_entity_bundle_delete($entity_type_id, $bundle) {
// Remove the content language settings associated with the bundle.
$settings = ContentLanguageSettings::loadByEntityTypeBundle($entity_type_id, $bundle);
if (!$settings->isNew()) {
$settings->delete();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.