Commit 9f978d2b authored by Cody Craven's avatar Cody Craven
Browse files

Issue #1252368 by codycraven: Fixed vocabulary machine name not updating in...

Issue #1252368 by codycraven: Fixed vocabulary machine name not updating in taxonomy_display table on change.
parent f4dd1fea
......@@ -2,6 +2,8 @@
Taxonomy Display 7.x-1.x, YYYY-MM-DD
------------------------------------
Issue #1252368 by codycraven: Fixed vocabulary machine name not updating in
taxonomy_display table on change.
Issue #1247802 by codycraven: Added plugin support for taxonomy breadcrumbs.
Issue #1237136 by codycraven: Expose term object on term page to altering.
Issue #1230200 by R.Muilwijk: Fixed exported views not recognized.
......
......@@ -386,16 +386,14 @@ function taxonomy_display_taxonomy_vocabulary_delete($vocabulary) {
}
/**
* Implements taxonomy_vocabulary_update().
*
* @todo test this works
* Implements hook_taxonomy_vocabulary_update().
*/
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_dislpay($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));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment