function msnf_field_attach_delete_bundle in Multistep Nodeform 7
Implements hook_field_attach_delete_bundle().
Parameters
<string> $entity_type: Type of entity.
<string> $bundle: Bundle name.
File
- ./
msnf.module, line 201 - Main functions for module "Multistep Nodeform".
Code
function msnf_field_attach_delete_bundle($entity_type, $bundle) {
ctools_include('export');
$list = msnf_read_steps(array(
'bundle' => $bundle,
'entity_type' => $entity_type,
));
// Delete the entity's entry from msnf_step of all entities.
// We fetch the form steps first to assign the removal task to ctools.
if (isset($list[$entity_type], $list[$entity_type][$bundle])) {
foreach ($list[$entity_type][$bundle] as $group) {
ctools_export_crud_delete('msnf_step', $group);
}
}
}