function crm_core_contact_uninstall in CRM Core 7
Implements hook_uninstall().
File
- modules/
crm_core_contact/ crm_core_contact.install, line 52 - Install, update and uninstall functions for the CRM Core Contact module.
Code
function crm_core_contact_uninstall() {
// Instance field information field_info_field is not available
// because we have already unloaded our module.
$additional_params = array(
'include_inactive' => TRUE,
);
$instances = field_read_instances(array(
'entity_type' => 'crm_core_contact',
), $additional_params);
foreach ($instances as $instance) {
field_delete_instance($instance);
}
}