| Versionen | |
|---|---|
| drupal7 | field_attach_delete_bundle($bundle) |
Notify field.module the a bundle was deleted.
This deletes the data for the field instances as well as the field instances themselves. This function actually just marks the data and field instances and deleted, leaving the garbage collection for a separate process, because it is not always possible to delete this much data in a single page request (particularly since for some field types, the deletion is more than just a simple DELETE query).
$bundle The bundle to delete.
This function is an autoloader for _field_attach_delete_bundle() in modules/field/field.attach.inc.
modules/
<?php
function field_attach_delete_bundle($bundle) {
require_once DRUPAL_ROOT . '/modules/field/field.attach.inc';
return _field_attach_delete_bundle($bundle);
}
?>
Kommentare
Kommentar hinzufügen