You are here

function multifield_delete in Multifield 7.2

Same name and namespace in other branches
  1. 7 multifield.module \multifield_delete()
2 calls to multifield_delete()
MultifieldUnitTestCase::testDeprecatedField in tests/MultifieldUnitTestCase.test
multifield_delete_form_submit in ./multifield.admin.inc
1 string reference to 'multifield_delete'
multifield_schema in ./multifield.install
Implements hook_schema().

File

./multifield.module, line 175

Code

function multifield_delete($multifield) {
  module_invoke_all('multifield_delete', $multifield);
  db_delete('multifield')
    ->condition('machine_name', $multifield->machine_name)
    ->execute();
  field_attach_delete_bundle('multifield', $multifield->machine_name);
  multifield_cache_clear();
}