function title_disable in Title 7
Implements hook_disable().
File
- ./
title.install, line 30 - Installation functions for the Title module.
Code
function title_disable() {
foreach (field_read_fields() as $field) {
if ($field['type'] !== 'taxonomy_term_reference') {
continue;
}
if ($field['settings']['options_list_callback'] !== 'title_taxonomy_allowed_values') {
continue;
}
$field['settings']['options_list_callback'] = '';
field_update_field($field);
}
}