diff --git a/sites/all/modules/contrib/menu_token/menu_token.module b/sites/all/modules/contrib/menu_token/menu_token.module index 13e239f..2affe7c 100644 --- a/sites/all/modules/contrib/menu_token/menu_token.module +++ b/sites/all/modules/contrib/menu_token/menu_token.module @@ -306,10 +306,6 @@ function menu_token_form_menu_edit_item_alter(&$form, &$form_state) { // Replace fake path (/menutoken/ouruid) with user inputed one. if (!empty($options['menu_token_link_path'])) { - $form['menu_token_uuid'] = array( - '#type' => 'hidden', - '#value' => $form['link_path']['#default_value'], - ); $form['link_path']['#default_value'] = $options['menu_token_link_path']; } @@ -434,13 +430,6 @@ function menu_token_form_menu_edit_item_validate($form, &$form_state) { // Substitute link_path with our own unique menu path. This will make sure features will export our menu items. form_set_value(array('#parents' => array('options', 'menu_token_link_path')), $values['link_path'], $form_state); form_set_value(array('#parents' => array('link_path')), '', $form_state); - if (!empty($values['menu_token_uuid'])) { - // If a uuid already exists, dont change it - form_set_value(array('#parents' => array('link_path')), $values['menu_token_uuid'], $form_state); - } - else { - form_set_value(array('#parents' => array('link_path')), 'menutoken/' . uniqid(), $form_state); - } foreach (array_keys(menu_token_get_plugin_types()) as $type) { if (!empty($values['menu_token_type_' . $type]) && $values['menu_token_type_' . $type] != '_none') { $plugin = $values['menu_token_type_' . $type];