function custom_search_update_7104 in Custom Search 7
Store vids - machine names association.
File
- ./
custom_search.install, line 96 - Install, update, and uninstall functions for the custom search module.
Code
function custom_search_update_7104() {
if (module_exists('taxonomy')) {
$vocabularies = taxonomy_get_vocabularies();
$machine_names = array();
foreach ($vocabularies as $voc) {
$machine_names[$voc->machine_name] = $voc->vid;
}
// This will be needed for those upgrading to Drupal 8 or Backdrop.
variable_set('custom_search_taxonomy_machine_names', $machine_names);
}
}