function field_property_uninstall in Field property 7
Implements hook_uninstall().
File
- ./
field_property.install, line 11 - Install, update, and uninstall functions for the field_property module.
Code
function field_property_uninstall() {
// Remove all 'is_property' values from field instances.
foreach (field_info_instances() as $entity_type => $bundles) {
foreach ($bundles as $bundle => $instances) {
foreach ($instances as $instance) {
if (!empty($instance['is_property'])) {
unset($instance['is_property']);
field_update_instance($instance);
}
}
}
}
}