From 9c5fc1964685acb07f13d2c9a9a1487be636043c Mon Sep 17 00:00:00 2001 From: Jen Lampton Date: Fri, 1 Sep 2017 18:16:29 -0700 Subject: [PATCH] Issue #5: Replace vid with vocabulary in submit handler. --- taxonomy_menu.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/taxonomy_menu.module b/taxonomy_menu.module index c627c33..bb9d9a7 100644 --- a/taxonomy_menu.module +++ b/taxonomy_menu.module @@ -224,7 +224,7 @@ function taxonomy_menu_overview_submit(&$form, &$form_state) { $sync = $config->get('sync'); if ($menu_name && $sync) { // Update all menu items (do not rebuild the menu). - $message = _taxonomy_menu_update_link_items($vid); + $message = _taxonomy_menu_update_link_items($vocabulary); // Report status. if (isset($message)) { @@ -467,10 +467,10 @@ function _taxonomy_menu_nodeapi_helper($op, $terms = array(), $node) { // Build argument array to save menu_item. $args = array( 'tid' => $term->tid, - 'vid' => $term->vid, + 'vocabulary' => $term->vocabulary, 'term' => $term, 'menu_name' => $menu_name, - 'mlid' => _taxonomy_menu_get_mlid($term->tid, $term->vid), + 'mlid' => _taxonomy_menu_get_mlid($term->tid, $term->vocabulary), ); if ($op == 'delete') {