Skip to content

Commit

Permalink
Merge pull request #6 from jenlampton/5-vid
Browse files Browse the repository at this point in the history
Issue #5: Replace vid with vocabulary in submit handler.
  • Loading branch information
jenlampton authored Sep 2, 2017
2 parents c77ea0f + 9c5fc19 commit b735439
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions taxonomy_menu.module
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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') {
Expand Down

0 comments on commit b735439

Please sign in to comment.