function hs_taxonomy_field_delete in Hierarchical Select 7.3
Implements hook_field_delete().
This enables us to delete HS configs when fields are deleted.
File
- modules/
hs_taxonomy.module, line 227 - Implementation of the Hierarchical Select API for the Taxonomy module.
Code
function hs_taxonomy_field_delete($entity_type, $entity, $field, $instance, $langcode, &$items) {
require_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'hierarchical_select') . '/includes/common.inc';
hierarchical_select_common_config_del(hs_taxonomy_get_config_id($field['field_name']));
}