Commit 6d77540b authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#199428 by Lynn: default to the primary links for content menu items (usability)

parent b038c605
......@@ -605,7 +605,7 @@ function menu_configure() {
$menu_options = menu_get_menus();
$form['menu_default_node_menu'] = array('#type' => 'select',
'#title' => t('Default menu for content'),
'#default_value' => variable_get('menu_default_node_menu', 'navigation'),
'#default_value' => variable_get('menu_default_node_menu', 'primary-links'),
'#options' => $menu_options,
'#description' => t('Choose the menu to be the default in the menu options in the content authoring form.'),
);
......
......@@ -319,7 +319,7 @@ function menu_nodeapi(&$node, $op) {
case 'prepare':
if (empty($node->menu)) {
// Prepare the node for the edit form so that $node->menu always exists.
$menu_name = variable_get('menu_default_node_menu', 'navigation');
$menu_name = variable_get('menu_default_node_menu', 'primary-links');
$item = array();
if (isset($node->nid)) {
// Give priority to the default menu
......@@ -396,7 +396,7 @@ function menu_form_alter(&$form, $form_state, $form_id) {
$options = menu_parent_options(menu_get_menus(), $item);
$default = $item['menu_name'] .':'. $item['plid'];
if (!isset($options[$default])) {
$default = 'navigation:0';
$default = 'primary-links:0';
}
$form['menu']['parent'] = array(
'#type' => 'select',
......
Markdown is supported
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