You are here

function taxonomy_display_taxonomy_vocabulary_update in Taxonomy display 7

Implements hook_taxonomy_vocabulary_update().

File

./taxonomy_display.module, line 424
Hooks for the taxonomy display module.

Code

function taxonomy_display_taxonomy_vocabulary_update($vocabulary) {

  // If the machine name is changed update our display table so that the display
  // settings still apply.
  if ($vocabulary->old_machine_name != $vocabulary->machine_name && taxonomy_display_fetch_taxonomy_display($vocabulary->old_machine_name)) {
    taxonomy_display_save_taxonomy_display($vocabulary->old_machine_name, array(
      'machine_name' => $vocabulary->machine_name,
    ), 'Taxonomy display vocabulary changed machine name from %old to %new in response to the vocabulary machine name being altered.', array(
      '%old' => $vocabulary->old_machine_name,
      '%new' => $vocabulary->machine_name,
    ));
  }
}