Skip to content
Snippets Groups Projects
Verified Commit 32020ecb authored by Juraj Nemec's avatar Juraj Nemec
Browse files

Issue #2021571 by rszrama: Preview of menu machine name is inaccurate on while adding a menu

parent cfb8a71b
Branches
Tags
1 merge request!7330Issue #3306390 by poker10, catch, Fabianx, pwolanin, rvtraveller: [D7]...
......@@ -481,6 +481,7 @@ function menu_edit_menu($form, &$form_state, $type, $menu = array()) {
'#default_value' => $menu['menu_name'],
'#maxlength' => MENU_MAX_MENU_NAME_LENGTH_UI,
'#description' => t('A unique name to construct the URL for the menu. It must only contain lowercase letters, numbers and hyphens.'),
'#field_prefix' => empty($menu['old_name']) ? 'menu-' : '',
'#machine_name' => array(
'exists' => 'menu_edit_menu_name_exists',
'source' => array('title'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment