language_entity_bundle_delete

language_entity_bundle_delete($entity_type_id, $bundle)

Implements hook_entity_bundle_delete().

File

core/modules/language/language.module, line 217
Add language handling functionality to Drupal.

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();
  }
}
doc_Drupal
2016-10-29 09:23:01
Comments
Leave a Comment

Please login to continue.