function merci_core_delete_fields in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Enables and deletes fields of the specified type.
Parameters
$type: The type of fields to enable and delete.
See also
2 calls to merci_core_delete_fields()
- merci_reservation_uninstall in merci_reservation/
merci_reservation.install - merci_restrictions_uninstall in merci_restrictions/
merci_restrictions.install - Implements hook_uninstall().
File
- merci_core/
merci_core.module, line 412
Code
function merci_core_delete_fields($type) {
// Read the fields for any active or inactive field of the specified type.
foreach (field_read_fields(array(
'type' => $type,
), array(
'include_inactive' => TRUE,
)) as $field_name => $field) {
merci_core_delete_field($field_name);
}
}