diff --git a/core/includes/menu.inc b/core/includes/menu.inc index 0c18a60..5445294 100644 --- a/core/includes/menu.inc +++ b/core/includes/menu.inc @@ -1772,18 +1772,18 @@ function menu_set_custom_theme() { */ function menu_list_system_menus() { return array( - 'navigation' => 'Navigation', - 'management' => 'Management', - 'user-menu' => 'User menu', - 'main-menu' => 'Main menu', + 'tools' => 'Tools', + 'administration' => 'Administration', + 'account' => 'User account menu', + 'main-navigation' => 'Main navigation', ); } /** - * Return an array of links to be rendered as the Main menu. + * Return an array of links to be rendered as the Main navigation menu. */ function menu_main_menu() { - return menu_navigation_links(variable_get('menu_main_links_source', 'main-menu')); + return menu_navigation_links(variable_get('menu_main_links_source', 'main-navigation')); } /** @@ -1793,11 +1793,11 @@ function menu_secondary_menu() { // If the secondary menu source is set as the primary menu, we display the // second level of the primary menu. - if (variable_get('menu_secondary_links_source', 'user-menu') == variable_get('menu_main_links_source', 'main-menu')) { - return menu_navigation_links(variable_get('menu_main_links_source', 'main-menu'), 1); + if (variable_get('menu_secondary_links_source', 'account') == variable_get('menu_main_links_source', 'main-navigation')) { + return menu_navigation_links(variable_get('menu_main_links_source', 'main-navigation'), 1); } else { - return menu_navigation_links(variable_get('menu_secondary_links_source', 'user-menu'), 0); + return menu_navigation_links(variable_get('menu_secondary_links_source', 'account'), 0); } } @@ -2123,7 +2123,7 @@ function menu_local_tasks($level = 0) { * @param $args * A list of dynamic path arguments to append to $parent_path to form the * fully-qualified menu router path, for example array(123) for a certain - * node or array('system', 'navigation') for a certain block. + * node or array('system', 'tools') for a certain block. * * @return * A list of menu router items that are local tasks for the passed-in path. @@ -2272,7 +2272,7 @@ function theme_menu_local_tasks(&$variables) { * 'menu_default_active_menus' variable may be used to assert a menu order * different from the order of creation, or to prevent a particular menu from * being used at all in the active trail. - * E.g., $conf['menu_default_active_menus'] = array('navigation', 'main-menu') + * E.g., $conf['menu_default_active_menus'] = array('tools', 'main-navigation') */ function menu_set_active_menu_names($menu_names = NULL) { $active = &drupal_static(__FUNCTION__); @@ -2620,7 +2620,7 @@ function menu_link_load($mlid) { /** * Clears the cached cached data for a single named menu. */ -function menu_cache_clear($menu_name = 'navigation') { +function menu_cache_clear($menu_name = 'tools') { cache('menu')->deletePrefix('links:' . $menu_name . ':'); // Also clear the menu system static caches. menu_reset_static_cache(); @@ -2752,7 +2752,7 @@ function _menu_link_build($item) { // the menu links generated automatically from entries in {menu_router}. $item['module'] = 'system'; $item += array( - 'menu_name' => 'navigation', + 'menu_name' => 'tools', 'link_title' => $item['title'], 'link_path' => $item['path'], 'hidden' => 0, @@ -2997,7 +2997,7 @@ function _menu_delete_item($item, $force = FALSE) { * normalized first by calling drupal_get_normal_path() on it. * - link_title: (required) Title to appear in menu for the link. * - menu_name: (optional) The machine name of the menu for the link. - * Defaults to 'navigation'. + * Defaults to 'tools'. * - weight: (optional) Integer to determine position in menu. Default is 0. * - expanded: (optional) Boolean that determines if the item is expanded. * - options: (optional) An array of options, see l() for more. @@ -3024,7 +3024,7 @@ function menu_link_save(&$item, $existing_item = array(), $parent_candidates = a $item['external'] = (url_is_external($item['link_path']) || $item['link_path'] == '') ? 1 : 0; // Load defaults. $item += array( - 'menu_name' => 'navigation', + 'menu_name' => 'tools', 'weight' => 0, 'link_title' => '', 'hidden' => 0, diff --git a/core/modules/block/lib/Drupal/block/Tests/BlockTest.php b/core/modules/block/lib/Drupal/block/Tests/BlockTest.php index 38e65c4..49d4ed4 100644 --- a/core/modules/block/lib/Drupal/block/Tests/BlockTest.php +++ b/core/modules/block/lib/Drupal/block/Tests/BlockTest.php @@ -312,10 +312,10 @@ class BlockTest extends WebTestBase { * Test configuring and moving a module-define block to specific regions. */ function testBlock() { - // Select the Navigation block to be configured and moved. + // Select the Administration menu block to be configured and moved. $block = array(); $block['module'] = 'system'; - $block['delta'] = 'management'; + $block['delta'] = 'administration'; $block['title'] = $this->randomName(8); // Set block title to confirm that interface works and override any custom titles. @@ -347,13 +347,13 @@ class BlockTest extends WebTestBase { $xpath = $this->buildXPathQuery('//div[@id=:id]/*', array(':id' => 'block-block-' . $bid)); $this->assertNoFieldByXPath($xpath, FALSE, t('Custom block found in no regions.')); - // For convenience of developers, put the navigation block back. + // For convenience of developers, put the Administration menu block back. $edit = array(); $edit['blocks[' . $block['module'] . '_' . $block['delta'] . '][region]'] = $this->regions[1]; $this->drupalPost('admin/structure/block', $edit, t('Save blocks')); $this->assertText(t('The block settings have been updated.'), t('Block successfully move to first sidebar region.')); - $this->drupalPost('admin/structure/block/manage/' . $block['module'] . '/' . $block['delta'] . '/configure', array('title' => 'Navigation'), t('Save block')); + $this->drupalPost('admin/structure/block/manage/' . $block['module'] . '/' . $block['delta'] . '/configure', array('title' => 'Tools'), t('Save block')); $this->assertText(t('The block configuration has been saved.'), t('Block title set.')); } diff --git a/core/modules/block/tests/themes/block_test_theme/page.tpl.php b/core/modules/block/tests/themes/block_test_theme/page.tpl.php index ba72882..0d1a42b 100644 --- a/core/modules/block/tests/themes/block_test_theme/page.tpl.php +++ b/core/modules/block/tests/themes/block_test_theme/page.tpl.php @@ -44,7 +44,7 @@ diff --git a/core/modules/contact/contact.module b/core/modules/contact/contact.module index 48c12d9..a7cff0d 100644 --- a/core/modules/contact/contact.module +++ b/core/modules/contact/contact.module @@ -21,14 +21,14 @@ function contact_help($path, $arg) { $output .= '
' . t('Site-wide contact forms') . '
'; $output .= '
' . t('The Contact page provides a simple form for users with the Use the site-wide contact form permission to send comments, feedback, or other requests. You can create categories for directing the contact form messages to a set of defined recipients. Common categories for a business site, for example, might include "Website feedback" (messages are forwarded to website administrators) and "Product information" (messages are forwarded to members of the sales department). E-mail addresses defined within a category are not displayed publicly.', array('@contact' => url('contact'))) . '

'; $output .= '
' . t('Navigation') . '
'; - $output .= '
' . t("When the site-wide contact form is enabled, a link in the main Navigation menu is created, but the link is disabled by default. This menu link can be enabled on the Menus administration page.", array('@contact' => url('contact'), '@menu' => url('admin/structure/menu'))) . '
'; + $output .= '
' . t('When the site-wide contact form is enabled, a link in the Main navigation menu is created, but the link is disabled by default. This menu link can be enabled on the Menus administration page.', array('@contact' => url('contact'), '@menu' => url('admin/structure/menu'))) . '
'; $output .= '
' . t('Customization') . '
'; $output .= '
' . t('If you would like additional text to appear on the site-wide or personal contact page, use a block. You can create and edit blocks on the Blocks administration page.', array('@blocks' => url('admin/structure/block'))) . '
'; $output .= ''; return $output; case 'admin/structure/contact': $output = '

' . t('Add one or more categories on this page to set up your site-wide contact form.', array('@form' => url('contact'))) . '

'; - $output .= '

' . t('A Contact menu item (disabled by default) is added to the Navigation menu, which you can modify on the Menus administration page.', array('@menu-settings' => url('admin/structure/menu'))) . '

'; + $output .= '

' . t('A Contact menu item (disabled by default) is added to the Tools menu, which you can modify on the Menus administration page.', array('@menu-settings' => url('admin/structure/menu'))) . '

'; $output .= '

' . t('If you would like additional text to appear on the site-wide contact page, use a block. You can create and edit blocks on the Blocks administration page.', array('@blocks' => url('admin/structure/block'))) . '

'; return $output; } @@ -90,6 +90,7 @@ function contact_menu() { 'page callback' => 'drupal_get_form', 'page arguments' => array('contact_site_form'), 'access arguments' => array('access site-wide contact form'), + 'menu_name' => 'main-navigation', 'type' => MENU_SUGGESTED_ITEM, 'file' => 'contact.pages.inc', ); diff --git a/core/modules/contextual/contextual.module b/core/modules/contextual/contextual.module index 844e9ee..bc1b29b 100644 --- a/core/modules/contextual/contextual.module +++ b/core/modules/contextual/contextual.module @@ -122,8 +122,8 @@ function contextual_preprocess(&$variables, $hook) { * menu_contextual_links(). For example: * @code * array('#contextual_links' => array( - * 'block' => array('admin/structure/block/manage', array('system', 'navigation')), - * 'menu' => array('admin/structure/menu/manage', array('navigation')), + * 'block' => array('admin/structure/block/manage', array('system', 'tools')), + * 'menu' => array('admin/structure/menu/manage', array('tools')), * )) * @endcode * diff --git a/core/modules/forum/forum.module b/core/modules/forum/forum.module index 2f17042..2fc4688 100644 --- a/core/modules/forum/forum.module +++ b/core/modules/forum/forum.module @@ -33,8 +33,8 @@ function forum_help($path, $arg) { $output .= '
' . t('Visit the Forums page to set up containers and forums to hold your discussion topics.', array('@forums' => url('admin/structure/forum'))) . '
'; $output .= '
' . t('Starting a discussion') . '
'; $output .= '
' . t('The Forum topic link on the Add new content page creates the first post of a new threaded discussion, or thread.', array('@create-topic' => url('node/add/forum'), '@content-add' => url('node/add'))) . '
'; - $output .= '
' . t('Navigation') . '
'; - $output .= '
' . t('Enabling the Forum module provides a default Forums menu item in the navigation menu that links to the Forums page.', array('@forums' => url('forum'))) . '
'; + $output .= '
' . t('Forum navigation') . '
'; + $output .= '
' . t('Enabling the Forum module provides a default Forums menu item in the Tools menu that links to the Forums page.', array('@forums' => url('forum'))) . '
'; $output .= '
' . t('Moving forum topics') . '
'; $output .= '
' . t('A forum topic (and all of its comments) may be moved between forums by selecting a different forum while editing a forum topic. When moving a forum topic between forums, the Leave shadow copy option creates a link in the original forum pointing to the new location.') . '
'; $output .= '
' . t('Locking and disabling comments') . '
'; diff --git a/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php b/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php index 49f136d..0bfaa40 100644 --- a/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php +++ b/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php @@ -221,11 +221,11 @@ class ForumTest extends WebTestBase { $this->assertText(t('The block settings have been updated.'), t('[New forum topics] Forum block was enabled')); // Retrieve forum menu id. - $mlid = db_query_range("SELECT mlid FROM {menu_links} WHERE link_path = 'forum' AND menu_name = 'navigation' AND module = 'system' ORDER BY mlid ASC", 0, 1)->fetchField(); + $mlid = db_query_range("SELECT mlid FROM {menu_links} WHERE link_path = 'forum' AND menu_name = 'tools' AND module = 'system' ORDER BY mlid ASC", 0, 1)->fetchField(); - // Add forum to navigation menu. + // Add forum to the Tools menu. $edit = array(); - $this->drupalPost('admin/structure/menu/manage/navigation', $edit, t('Save configuration')); + $this->drupalPost('admin/structure/menu/manage/tools', $edit, t('Save configuration')); $this->assertResponse(200); // Edit forum taxonomy. diff --git a/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php b/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php index 28ca832..b3e21ed 100644 --- a/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php +++ b/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php @@ -41,15 +41,15 @@ class MenuNodeTest extends WebTestBase { * Test creating, editing, deleting menu links via node form widget. */ function testMenuNodeFormWidget() { - // Enable Navigation menu as available menu. + // Enable Tools menu as available menu. $edit = array( - 'menu_options[navigation]' => 1, + 'menu_options[tools]' => 1, ); $this->drupalPost('admin/structure/types/manage/page', $edit, t('Save content type')); - // Change default parent item to Navigation menu, so we can assert more + // Change default parent item to Tools menu, so we can assert more // easily. $edit = array( - 'menu_parent' => 'navigation:0', + 'menu_parent' => 'tools:0', ); $this->drupalPost('admin/structure/types/manage/page', $edit, t('Save content type')); @@ -98,24 +98,24 @@ class MenuNodeTest extends WebTestBase { $this->drupalGet(''); $this->assertNoLink($node_title); - // Add a menu link to the Management menu. + // Add a menu link to the Administration menu. $item = array( 'link_path' => 'node/' . $node->nid, 'link_title' => $this->randomName(16), - 'menu_name' => 'management', + 'menu_name' => 'administration', ); menu_link_save($item); - // Assert that disabled Management menu is not shown on the node/$nid/edit page. + // Assert that disabled Administration menu is not shown on the node/$nid/edit page. $this->drupalGet('node/' . $node->nid . '/edit'); $this->assertText('Provide a menu link', t('Link in not allowed menu not shown in node edit form')); - // Assert that the link is still in the management menu after save. + // Assert that the link is still in the Administration menu after save. $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); $link = menu_link_load($item['mlid']); $this->assertTrue($link, t('Link in not allowed menu still exists after saving node')); - // Move the menu link back to the Navigation menu. - $item['menu_name'] = 'navigation'; + // Move the menu link back to the Tools menu. + $item['menu_name'] = 'tools'; menu_link_save($item); // Create a second node. $child_node = $this->drupalCreateNode(array('type' => 'article')); @@ -129,9 +129,9 @@ class MenuNodeTest extends WebTestBase { // Edit the first node. $this->drupalGet('node/'. $node->nid .'/edit'); // Assert that it is not possible to set the parent of the first node to itself or the second node. - $this->assertNoOption('edit-menu-parent', 'navigation:'. $item['mlid']); - $this->assertNoOption('edit-menu-parent', 'navigation:'. $child_item['mlid']); - // Assert that unallowed Management menu is not available in options. - $this->assertNoOption('edit-menu-parent', 'management:0'); + $this->assertNoOption('edit-menu-parent', 'tools:'. $item['mlid']); + $this->assertNoOption('edit-menu-parent', 'tools:'. $child_item['mlid']); + // Assert that unallowed Administration menu is not available in options. + $this->assertNoOption('edit-menu-parent', 'administration:0'); } } diff --git a/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php b/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php index 4cdf809..75baaad 100644 --- a/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php +++ b/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php @@ -20,7 +20,7 @@ class MenuTest extends WebTestBase { public static function getInfo() { return array( 'name' => 'Menu link creation/deletion', - 'description' => 'Add a custom menu, add menu links to the custom menu and Navigation menu, check their data, and delete them using the menu module UI.', + 'description' => 'Add a custom menu, add menu links to the custom menu and Tools menu, check their data, and delete them using the menu module UI.', 'group' => 'Menu' ); } @@ -81,7 +81,7 @@ class MenuTest extends WebTestBase { } /** - * Test standard menu functionality using navigation menu. + * Test standard menu functionality using Tools menu. * */ function doStandardMenuTests() { @@ -90,7 +90,7 @@ class MenuTest extends WebTestBase { } /** - * Test custom menu functionality using navigation menu. + * Test custom menu functionality using Tools menu. * */ function doCustomMenuTests() { @@ -198,10 +198,10 @@ class MenuTest extends WebTestBase { } /** - * Test menu functionality using navigation menu. + * Test menu functionality using Tools menu. * */ - function doMenuTests($menu_name = 'navigation') { + function doMenuTests($menu_name = 'tools') { // Add nodes to use as links for menu links. $node1 = $this->drupalCreateNode(array('type' => 'article')); $node2 = $this->drupalCreateNode(array('type' => 'article')); @@ -289,7 +289,7 @@ class MenuTest extends WebTestBase { * @param string $menu_name Menu name. * @return array Menu link created. */ - function addMenuLink($plid = 0, $link = '', $menu_name = 'navigation', $expanded = TRUE) { + function addMenuLink($plid = 0, $link = '', $menu_name = 'tools', $expanded = TRUE) { // View add menu link page. $this->drupalGet("admin/structure/menu/manage/$menu_name/add"); $this->assertResponse(200); @@ -323,7 +323,7 @@ class MenuTest extends WebTestBase { * * @param string $menu_name Menu name. */ - function addInvalidMenuLink($menu_name = 'navigation') { + function addInvalidMenuLink($menu_name = 'tools') { foreach (array('-&-', 'admin/people/permissions', '#') as $link_path) { $edit = array( 'link_path' => $link_path, @@ -553,11 +553,11 @@ class MenuTest extends WebTestBase { $this->assertText(t('Menus'), t('Menu build overview node was displayed')); } - // View navigation menu customization node. - $this->drupalGet('admin/structure/menu/manage/navigation'); + // View tools menu customization node. + $this->drupalGet('admin/structure/menu/manage/tools'); $this->assertResponse($response); if ($response == 200) { - $this->assertText(t('Navigation'), t('Navigation menu node was displayed')); + $this->assertText(t('Tools'), t('Tools menu node was displayed')); } // View menu edit node. diff --git a/core/modules/menu/menu.admin.inc b/core/modules/menu/menu.admin.inc index 496ff88..181388b 100644 --- a/core/modules/menu/menu.admin.inc +++ b/core/modules/menu/menu.admin.inc @@ -342,7 +342,7 @@ function menu_edit_item($form, &$form_state, $type, $item, $menu) { $options = menu_parent_options(menu_get_menus(), $item); $default = $item['menu_name'] . ':' . $item['plid']; if (!isset($options[$default])) { - $default = 'navigation:0'; + $default = 'tools:0'; } $form['parent'] = array( '#type' => 'select', @@ -671,11 +671,11 @@ function menu_configure() { $menu_options = menu_get_menus(); - $main = variable_get('menu_main_links_source', 'main-menu'); + $main = variable_get('menu_main_links_source', 'main-navigation'); $form['menu_main_links_source'] = array( '#type' => 'select', '#title' => t('Source for the Main links'), - '#default_value' => variable_get('menu_main_links_source', 'main-menu'), + '#default_value' => variable_get('menu_main_links_source', 'main-navigation'), '#empty_option' => t('No Main links'), '#options' => $menu_options, '#tree' => FALSE, @@ -685,7 +685,7 @@ function menu_configure() { $form['menu_secondary_links_source'] = array( '#type' => 'select', '#title' => t('Source for the Secondary links'), - '#default_value' => variable_get('menu_secondary_links_source', 'user-menu'), + '#default_value' => variable_get('menu_secondary_links_source', 'account'), '#empty_option' => t('No Secondary links'), '#options' => $menu_options, '#tree' => FALSE, diff --git a/core/modules/menu/menu.install b/core/modules/menu/menu.install index d876017..d976763 100644 --- a/core/modules/menu/menu.install +++ b/core/modules/menu/menu.install @@ -10,7 +10,7 @@ */ function menu_schema() { $schema['menu_custom'] = array( - 'description' => 'Holds definitions for top-level custom menus (for example, Main menu).', + 'description' => 'Holds definitions for top-level custom menus (for example, Main navigation menu).', 'fields' => array( 'menu_name' => array( 'type' => 'varchar', @@ -47,10 +47,10 @@ function menu_install() { $system_menus = menu_list_system_menus(); $t = get_t(); $descriptions = array( - 'navigation' => $t('The Navigation menu contains links intended for site visitors. Links are added to the Navigation menu automatically by some modules.'), - 'user-menu' => $t("The User menu contains links related to the user's account, as well as the 'Log out' link."), - 'management' => $t('The Management menu contains links for administrative tasks.'), - 'main-menu' => $t('The Main menu is used on many sites to show the major sections of the site, often in a top navigation bar.'), + 'tools' => $t('Contains links for site visitors. Some modules add their links here.'), + 'account' => $t("Links related to the user account."), + 'administration' => $t('Contains links to administrative tasks.'), + 'main-navigation' => $t('Use this for linking to the main site sections.'), ); foreach ($system_menus as $menu_name => $title) { $menu = array( diff --git a/core/modules/menu/menu.module b/core/modules/menu/menu.module index 466cd88..5ba043d 100644 --- a/core/modules/menu/menu.module +++ b/core/modules/menu/menu.module @@ -374,7 +374,7 @@ function menu_parent_options($menus, $item, $type = '') { } else { // If a node type is set, use all available menus for this type. - $type_menus = variable_get('menu_options_' . $type, array('main-menu' => 'main-menu')); + $type_menus = variable_get('menu_options_' . $type, array('main-navigation' => 'main-navigation')); foreach ($type_menus as $menu) { $available_menus[$menu] = $menu; } @@ -567,12 +567,12 @@ function menu_node_predelete(Node $node) { function menu_node_prepare(Node $node) { if (empty($node->menu)) { // Prepare the node for the edit form so that $node->menu always exists. - $menu_name = strtok(variable_get('menu_parent_' . $node->type, 'main-menu:0'), ':'); + $menu_name = strtok(variable_get('menu_parent_' . $node->type, 'main-navigation:0'), ':'); $item = array(); if (isset($node->nid)) { $mlid = FALSE; // Give priority to the default menu - $type_menus = variable_get('menu_options_' . $node->type, array('main-menu' => 'main-menu')); + $type_menus = variable_get('menu_options_' . $node->type, array('main-navigation' => 'main-navigation')); if (in_array($menu_name, $type_menus)) { $mlid = db_query_range("SELECT mlid FROM {menu_links} WHERE link_path = :path AND menu_name = :menu_name AND module = 'menu' ORDER BY mlid ASC", 0, 1, array( ':path' => 'node/' . $node->nid, @@ -687,7 +687,7 @@ function menu_form_node_form_alter(&$form, $form_state) { '#description' => t('Shown when hovering over the menu link.'), ); - $default = ($link['mlid'] ? $link['menu_name'] . ':' . $link['plid'] : variable_get('menu_parent_' . $type, 'main-menu:0')); + $default = ($link['mlid'] ? $link['menu_name'] . ':' . $link['plid'] : variable_get('menu_parent_' . $type, 'main-navigation:0')); // If the current parent menu item is not present in options, use the first // available option as default value. // @todo User should not be allowed to access menu link settings in such a @@ -746,7 +746,7 @@ function menu_form_node_type_form_alter(&$form, $form_state) { $form['menu']['menu_options'] = array( '#type' => 'checkboxes', '#title' => t('Available menus'), - '#default_value' => variable_get('menu_options_' . $type->type, array('main-menu')), + '#default_value' => variable_get('menu_options_' . $type->type, array('main-navigation')), '#options' => $menu_options, '#description' => t('The menus available to place links in for this content type.'), ); @@ -758,7 +758,7 @@ function menu_form_node_type_form_alter(&$form, $form_state) { $form['menu']['menu_parent'] = array( '#type' => 'select', '#title' => t('Default parent item'), - '#default_value' => variable_get('menu_parent_' . $type->type, 'main-menu:0'), + '#default_value' => variable_get('menu_parent_' . $type->type, 'main-navigation:0'), '#options' => $options, '#description' => t('Choose the menu item to be the default parent for a new link in the content authoring form.'), '#attributes' => array('class' => array('menu-title-select')), diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 31b94d3..18cefde 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -1869,7 +1869,7 @@ function node_menu() { $items['node'] = array( 'page callback' => 'node_page_default', 'access arguments' => array('access content'), - 'menu_name' => 'navigation', + 'menu_name' => 'tools', 'type' => MENU_CALLBACK, ); $items['node/add'] = array( diff --git a/core/modules/system/page.tpl.php b/core/modules/system/page.tpl.php index 5c53d2b..784087a 100644 --- a/core/modules/system/page.tpl.php +++ b/core/modules/system/page.tpl.php @@ -29,8 +29,8 @@ * in theme settings. * * Navigation: - * - $main_menu (array): An array containing the Main menu links for the - * site, if they have been configured. + * - $main_menu (array): An array containing the Main navigation menu links + * for the site, if they have been configured. * - $secondary_menu (array): An array containing the Secondary menu links for * the site, if they have been configured. * - $breadcrumb: The breadcrumb trail for the current page. @@ -106,7 +106,7 @@ diff --git a/core/modules/system/system.api.php b/core/modules/system/system.api.php index ed5b7a0..a9ee3c2 100644 --- a/core/modules/system/system.api.php +++ b/core/modules/system/system.api.php @@ -511,7 +511,7 @@ function hook_menu_get_item_alter(&$router_item, $path, $original_map) { * * This hook enables modules to register paths in order to define how URL * requests are handled. Paths may be registered for URL handling only, or they - * can register a link to be placed in a menu (usually the Navigation menu). A + * can register a link to be placed in a menu (usually the Tools menu). A * path and its associated information is commonly called a "menu router item". * This hook is rarely called (for example, when modules are enabled), and * its results are cached in the database. @@ -765,7 +765,7 @@ function hook_menu_get_item_alter(&$router_item, $path, $original_map) { * the menu; higher-weighted items sink. Defaults to 0. Menu items with the * same weight are ordered alphabetically. * - "menu_name": Optional. Set this to a custom menu if you don't want your - * item to be placed in Navigation. + * item to be placed in the default Tools menu. * - "context": (optional) Defines the context a tab may appear in. By * default, all tabs are only displayed as local tasks when being rendered * in a page context. All tabs that should be accessible as contextual links diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 168f2fc..5ec0b3b 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -1190,7 +1190,7 @@ function system_schema() { 'description' => 'Contains the individual links within a menu.', 'fields' => array( 'menu_name' => array( - 'description' => "The menu name. All links with the same menu name (such as 'navigation') are part of the same menu.", + 'description' => "The menu name. All links with the same menu name (such as 'tools') are part of the same menu.", 'type' => 'varchar', 'length' => 32, 'not null' => TRUE, diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 39755dc..ba3b60f 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -618,7 +618,7 @@ function system_menu() { 'access arguments' => array('access administration pages'), 'page callback' => 'system_admin_menu_block_page', 'weight' => 9, - 'menu_name' => 'management', + 'menu_name' => 'administration', 'file' => 'system.admin.inc', ); $items['admin/compact'] = array( diff --git a/core/modules/system/tests/menu.test b/core/modules/system/tests/menu.test index dbd94a1..8e4507c 100644 --- a/core/modules/system/tests/menu.test +++ b/core/modules/system/tests/menu.test @@ -145,11 +145,11 @@ class MenuRouterTestCase extends WebTestBase { variable_set('admin_theme', 'seven'); theme_disable(array('stark')); - // Enable navigation menu block. + // Enable Tools menu block. db_merge('block') ->key(array( 'module' => 'system', - 'delta' => 'navigation', + 'delta' => 'tools', 'theme' => 'bartik', )) ->fields(array( @@ -350,9 +350,9 @@ class MenuRouterTestCase extends WebTestBase { menu_link_maintain('menu_test', 'insert', 'menu_test_maintain/1', 'Menu link #1-main'); menu_link_maintain('menu_test', 'insert', 'menu_test_maintain/2', 'Menu link #2'); - // Move second link to the main-menu, to test caching later on. + // Move second link to the main-navigation, to test caching later on. db_update('menu_links') - ->fields(array('menu_name' => 'main-menu')) + ->fields(array('menu_name' => 'main-navigation')) ->condition('link_title', 'Menu link #1-main') ->condition('customized', 0) ->condition('module', 'menu_test') @@ -982,21 +982,21 @@ class MenuTreeOutputTestCase extends WebTestBase { */ var $tree_data = array( '1'=> array( - 'link' => array( 'menu_name' => 'main-menu', 'mlid' => 1, 'hidden'=>0, 'has_children' => 1, 'title' => 'Item 1', 'in_active_trail' => 1, 'access'=>1, 'href' => 'a', 'localized_options' => array('attributes' => array('title' =>'')) ), + 'link' => array( 'menu_name' => 'main-navigation', 'mlid' => 1, 'hidden'=>0, 'has_children' => 1, 'title' => 'Item 1', 'in_active_trail' => 1, 'access'=>1, 'href' => 'a', 'localized_options' => array('attributes' => array('title' =>'')) ), 'below' => array( - '2' => array('link' => array( 'menu_name' => 'main-menu', 'mlid' => 2, 'hidden'=>0, 'has_children' => 1, 'title' => 'Item 2', 'in_active_trail' => 1, 'access'=>1, 'href' => 'a/b', 'localized_options' => array('attributes' => array('title' =>'')) ), + '2' => array('link' => array( 'menu_name' => 'main-navigation', 'mlid' => 2, 'hidden'=>0, 'has_children' => 1, 'title' => 'Item 2', 'in_active_trail' => 1, 'access'=>1, 'href' => 'a/b', 'localized_options' => array('attributes' => array('title' =>'')) ), 'below' => array( - '3' => array('link' => array( 'menu_name' => 'main-menu', 'mlid' => 3, 'hidden'=>0, 'has_children' => 0, 'title' => 'Item 3', 'in_active_trail' => 0, 'access'=>1, 'href' => 'a/b/c', 'localized_options' => array('attributes' => array('title' =>'')) ), + '3' => array('link' => array( 'menu_name' => 'main-navigation', 'mlid' => 3, 'hidden'=>0, 'has_children' => 0, 'title' => 'Item 3', 'in_active_trail' => 0, 'access'=>1, 'href' => 'a/b/c', 'localized_options' => array('attributes' => array('title' =>'')) ), 'below' => array() ), - '4' => array('link' => array( 'menu_name' => 'main-menu', 'mlid' => 4, 'hidden'=>0, 'has_children' => 0, 'title' => 'Item 4', 'in_active_trail' => 0, 'access'=>1, 'href' => 'a/b/d', 'localized_options' => array('attributes' => array('title' =>'')) ), + '4' => array('link' => array( 'menu_name' => 'main-navigation', 'mlid' => 4, 'hidden'=>0, 'has_children' => 0, 'title' => 'Item 4', 'in_active_trail' => 0, 'access'=>1, 'href' => 'a/b/d', 'localized_options' => array('attributes' => array('title' =>'')) ), 'below' => array() ) ) ) ) ), - '5' => array('link' => array( 'menu_name' => 'main-menu', 'mlid' => 5, 'hidden'=>1, 'has_children' => 0, 'title' => 'Item 5', 'in_active_trail' => 0, 'access'=>1, 'href' => 'e', 'localized_options' => array('attributes' => array('title' =>'')) ), 'below' => array( ) ), - '6' => array('link' => array( 'menu_name' => 'main-menu', 'mlid' => 6, 'hidden'=>0, 'has_children' => 0, 'title' => 'Item 6', 'in_active_trail' => 0, 'access'=>0, 'href' => 'f', 'localized_options' => array('attributes' => array('title' =>'')) ), 'below' => array( ) ), - '7' => array('link' => array( 'menu_name' => 'main-menu', 'mlid' => 7, 'hidden'=>0, 'has_children' => 0, 'title' => 'Item 7', 'in_active_trail' => 0, 'access'=>1, 'href' => 'g', 'localized_options' => array('attributes' => array('title' =>'')) ), 'below' => array( ) ) + '5' => array('link' => array( 'menu_name' => 'main-navigation', 'mlid' => 5, 'hidden'=>1, 'has_children' => 0, 'title' => 'Item 5', 'in_active_trail' => 0, 'access'=>1, 'href' => 'e', 'localized_options' => array('attributes' => array('title' =>'')) ), 'below' => array( ) ), + '6' => array('link' => array( 'menu_name' => 'main-navigation', 'mlid' => 6, 'hidden'=>0, 'has_children' => 0, 'title' => 'Item 6', 'in_active_trail' => 0, 'access'=>0, 'href' => 'f', 'localized_options' => array('attributes' => array('title' =>'')) ), 'below' => array( ) ), + '7' => array('link' => array( 'menu_name' => 'main-navigation', 'mlid' => 7, 'hidden'=>0, 'has_children' => 0, 'title' => 'Item 7', 'in_active_trail' => 0, 'access'=>1, 'href' => 'g', 'localized_options' => array('attributes' => array('title' =>'')) ), 'below' => array( ) ) ); public static function getInfo() { @@ -1017,9 +1017,9 @@ class MenuTreeOutputTestCase extends WebTestBase { function testMenuTreeData() { $output = menu_tree_output($this->tree_data); - // Validate that the - in main-menu is changed into an underscore - $this->assertEqual( $output['1']['#theme'], 'menu_link__main_menu', t('Hyphen is changed to a dash on menu_link')); - $this->assertEqual( $output['#theme_wrappers'][0], 'menu_tree__main_menu', t('Hyphen is changed to a dash on menu_tree wrapper')); + // Validate that the - in main-navigation is changed into an underscore + $this->assertEqual( $output['1']['#theme'], 'menu_link__main_navigation', t('Hyphen is changed to a dash on menu_link')); + $this->assertEqual( $output['#theme_wrappers'][0], 'menu_tree__main_navigation', t('Hyphen is changed to a dash on menu_tree wrapper')); // Looking for child items in the data $this->assertEqual( $output['1']['#below']['2']['#href'], 'a/b', t('Checking the href on a child item')); $this->assertTrue( in_array('active-trail',$output['1']['#below']['2']['#attributes']['class']) , t('Checking the active trail class')); @@ -1052,8 +1052,8 @@ class MenuBreadcrumbTestCase extends MenuWebTestCase { $this->admin_user = $this->drupalCreateUser($perms); $this->drupalLogin($this->admin_user); - // This test puts menu links in the Navigation menu and then tests for - // their presence on the page, so we need to ensure that the Navigation + // This test puts menu links in the Tools menu and then tests for + // their presence on the page, so we need to ensure that the Tools // block will be displayed in all active themes. db_update('block') ->fields(array( @@ -1062,7 +1062,7 @@ class MenuBreadcrumbTestCase extends MenuWebTestCase { 'status' => 1, )) ->condition('module', 'system') - ->condition('delta', 'navigation') + ->condition('delta', 'tools') ->execute(); } @@ -1126,13 +1126,13 @@ class MenuBreadcrumbTestCase extends MenuWebTestCase { $trail += array( 'admin/structure/menu' => t('Menus'), ); - $this->assertBreadcrumb('admin/structure/menu/manage/navigation', $trail); + $this->assertBreadcrumb('admin/structure/menu/manage/tools', $trail); $trail += array( - 'admin/structure/menu/manage/navigation' => t('Navigation'), + 'admin/structure/menu/manage/tools' => t('Tools'), ); $this->assertBreadcrumb("admin/structure/menu/item/6/edit", $trail); - $this->assertBreadcrumb('admin/structure/menu/manage/navigation/edit', $trail); - $this->assertBreadcrumb('admin/structure/menu/manage/navigation/add', $trail); + $this->assertBreadcrumb('admin/structure/menu/manage/tools/edit', $trail); + $this->assertBreadcrumb('admin/structure/menu/manage/tools/add', $trail); // Verify Node administration breadcrumbs. $trail = $admin + array( @@ -1203,14 +1203,14 @@ class MenuBreadcrumbTestCase extends MenuWebTestCase { $this->assertBreadcrumb('node', $trail); // Verify node breadcrumbs (in menu). - // Do this separately for Main menu and Navigation menu, since only the + // Do this separately for Main navigation and Tools menu, since only the // latter is a preferred menu by default. // @todo Also test all themes? Manually testing led to the suspicion that // breadcrumbs may differ, possibly due to template.php overrides. - $menus = array('main-menu', 'navigation'); + $menus = array('main-navigation', 'tools'); // Alter node type menu settings. variable_set("menu_options_$type", $menus); - variable_set("menu_parent_$type", 'navigation:0'); + variable_set("menu_parent_$type", 'tools:0'); foreach ($menus as $menu) { // Create a parent node in the current menu. @@ -1272,15 +1272,15 @@ class MenuBreadcrumbTestCase extends MenuWebTestCase { $trail = array(); $this->assertBreadcrumb('node', $trail); - if ($menu == 'navigation') { + if ($menu == 'tools') { $parent = $node2; $child = $node3; } } - // Create a Navigation menu link for 'node', move the last parent node menu + // Create a Tools menu link for 'node', move the last parent node menu // link below it, and verify a full breadcrumb for the last child node. - $menu = 'navigation'; + $menu = 'tools'; $edit = array( 'link_title' => 'Root', 'link_path' => 'node', @@ -1309,7 +1309,7 @@ class MenuBreadcrumbTestCase extends MenuWebTestCase { $this->assertBreadcrumb("node/{$child->nid}", $trail, $child->title, $tree); // Add a taxonomy term/tag to last node, and add a link for that term to the - // Navigation menu. + // Tools menu. $tags = array( 'Drupal' => array(), 'Breadcrumbs' => array(), @@ -1370,7 +1370,7 @@ class MenuBreadcrumbTestCase extends MenuWebTestCase { // ('taxonomy/term/%') should never be translated and appear in any menu // other than the breadcrumb trail. $elements = $this->xpath('//div[@id=:menu]/descendant::a[@href=:href]', array( - ':menu' => 'block-system-navigation', + ':menu' => 'block-system-tools', ':href' => url($link['link_path']), )); $this->assertTrue(count($elements) == 1, "Link to {$link['link_path']} appears only once."); @@ -1433,7 +1433,7 @@ class MenuBreadcrumbTestCase extends MenuWebTestCase { ); $this->assertBreadcrumb('user/' . $this->web_user->uid . '/edit', $trail, $this->web_user->name); - // Add a Navigation menu links for 'user' and $this->admin_user. + // Add a Tools menu links for 'user' and $this->admin_user. // Although it may be faster to manage these links via low-level API // functions, there's a lot that can go wrong in doing so. $this->drupalLogin($this->admin_user); @@ -1541,8 +1541,8 @@ class MenuTrailTestCase extends MenuWebTestCase { $this->admin_user = $this->drupalCreateUser(array('administer site configuration', 'access administration pages')); $this->drupalLogin($this->admin_user); - // This test puts menu links in the Navigation menu and then tests for - // their presence on the page, so we need to ensure that the Navigation + // This test puts menu links in the Tools menu and then tests for + // their presence on the page, so we need to ensure that the Tools // block will be displayed in all active themes. db_update('block') ->fields(array( @@ -1551,11 +1551,11 @@ class MenuTrailTestCase extends MenuWebTestCase { 'status' => 1, )) ->condition('module', 'system') - ->condition('delta', 'navigation') + ->condition('delta', 'tools') ->execute(); - // This test puts menu links in the Management menu and then tests for - // their presence on the page, so we need to ensure that the Management + // This test puts menu links in the Administration menu and then tests for + // their presence on the page, so we need to ensure that the Administration // block will be displayed in all active themes. db_update('block') ->fields(array( @@ -1564,7 +1564,7 @@ class MenuTrailTestCase extends MenuWebTestCase { 'status' => 1, )) ->condition('module', 'system') - ->condition('delta', 'management') + ->condition('delta', 'administration') ->execute(); } @@ -1583,7 +1583,7 @@ class MenuTrailTestCase extends MenuWebTestCase { // the menu_test_menu_trail_callback() callback (used by all paths in these // tests) issues an overriding call to menu_trail_set_path(). $test_menu_path = array( - 'menu_name' => 'management', + 'menu_name' => 'administration', 'path' => 'admin/config/system/site-information', ); @@ -1595,12 +1595,12 @@ class MenuTrailTestCase extends MenuWebTestCase { 'menu-test/menu-trail' => t('Menu trail - Case 1'), ); - // Test the tree generation for the Navigation menu. + // Test the tree generation for the Tools menu. variable_del('menu_test_menu_tree_set_path'); $this->assertBreadcrumb('menu-test/menu-trail', $breadcrumb, t('Menu trail - Case 1'), $tree); - // Override the active trail for the Management tree; it should not affect - // the Navigation tree. + // Override the active trail for the Administration tree; it should not affect + // the Tools menu tree. variable_set('menu_test_menu_tree_set_path', $test_menu_path); $this->assertBreadcrumb('menu-test/menu-trail', $breadcrumb, t('Menu trail - Case 1'), $tree); @@ -1621,12 +1621,12 @@ class MenuTrailTestCase extends MenuWebTestCase { 'admin/config/system/site-information' => t('Site information'), ); - // Test the tree generation for the Management menu. + // Test the tree generation for the Administration menu. variable_del('menu_test_menu_tree_set_path'); $this->assertBreadcrumb('admin/config/development/menu-trail', $breadcrumb, t('Menu trail - Case 2'), $tree); - // Override the active trail for the Management tree; it should affect the - // breadcrumbs and Management tree. + // Override the active trail for the Administration tree; it should affect the + // breadcrumbs and Administration tree. variable_set('menu_test_menu_tree_set_path', $test_menu_path); $this->assertBreadcrumb('admin/config/development/menu-trail', $override_breadcrumb, t('Menu trail - Case 2'), $override_tree); } diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module index 904a2f8..a5191ac 100644 --- a/core/modules/toolbar/toolbar.module +++ b/core/modules/toolbar/toolbar.module @@ -288,9 +288,9 @@ function toolbar_view() { */ function toolbar_get_menu_tree() { $tree = array(); - $admin_link = db_query('SELECT * FROM {menu_links} WHERE menu_name = :menu_name AND module = :module AND link_path = :path', array(':menu_name' => 'management', ':module' => 'system', ':path' => 'admin'))->fetchAssoc(); + $admin_link = db_query('SELECT * FROM {menu_links} WHERE menu_name = :menu_name AND module = :module AND link_path = :path', array(':menu_name' => 'administration', ':module' => 'system', ':path' => 'admin'))->fetchAssoc(); if ($admin_link) { - $tree = menu_build_tree('management', array( + $tree = menu_build_tree('administration', array( 'expanded' => array($admin_link['mlid']), 'min_depth' => $admin_link['depth'] + 1, 'max_depth' => $admin_link['depth'] + 1, diff --git a/core/modules/toolbar/toolbar.tpl.php b/core/modules/toolbar/toolbar.tpl.php index 6f303b1..6685ae4 100644 --- a/core/modules/toolbar/toolbar.tpl.php +++ b/core/modules/toolbar/toolbar.tpl.php @@ -10,7 +10,7 @@ * preprocess functions. The default value has the following: * - toolbar: The current template type, i.e., "theming hook". * - $toolbar['toolbar_user']: User account / logout links. - * - $toolbar['toolbar_menu']: Top level management menu links. + * - $toolbar['toolbar_menu']: Top level Administration menu links. * - $toolbar['toolbar_drawer']: A place for extended toolbar content. * * Other variables: diff --git a/core/modules/tracker/tracker.module b/core/modules/tracker/tracker.module index dbedf12..27949b2 100644 --- a/core/modules/tracker/tracker.module +++ b/core/modules/tracker/tracker.module @@ -17,8 +17,8 @@ function tracker_help($path, $arg) { $output .= '

' . t('The Tracker module displays the most recently added and updated content on your site, and allows you to follow new content created by each user. This module has no configuration options. For more information, see the online handbook entry for Tracker module.', array('@tracker' => 'http://drupal.org/documentation/modules/tracker')) . '

'; $output .= '

' . t('Uses') . '

'; $output .= '
'; - $output .= '
' . t('Navigation') . '
'; - $output .= '
' . t('The Tracker module adds a new menu item to the Navigation menu, called Recent content. You can configure menu items via the Menus administration page.', array('@menus' => url('admin/structure/menu'))) . '
'; + $output .= '
' . t('Tracker navigation') . '
'; + $output .= '
' . t('The Tracker module adds a new menu item to the Tools menu, called Recent content. You can configure menu items via the Menus administration page.', array('@menus' => url('admin/structure/menu'))) . '
'; $output .= '
' . t('Tracking new and updated site content') . '
'; $output .= '
' . t("The Recent content page shows new and updated content in reverse chronological order, listing the content type, title, author's name, number of comments, and time of last update. Content is considered updated when changes occur in the text, or when new comments are added. The My recent content tab limits the list to the currently logged-in user.", array('@recent' => url('tracker'))) . '
'; $output .= '
' . t('Tracking user-specific content') . '
'; diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 01934b4..9d6ac33 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -1477,7 +1477,7 @@ function user_menu() { 'access callback' => TRUE, 'file' => 'user.pages.inc', 'weight' => -10, - 'menu_name' => 'user-menu', + 'menu_name' => 'account', ); $items['user/login'] = array( @@ -1516,7 +1516,7 @@ function user_menu() { 'access callback' => 'user_is_logged_in', 'page callback' => 'user_logout', 'weight' => 10, - 'menu_name' => 'user-menu', + 'menu_name' => 'account', 'file' => 'user.pages.inc', ); @@ -1626,7 +1626,7 @@ function user_menu() { // user account pages, the preferred menu link that is used to build the // active trail (breadcrumb) will be found in this menu (unless there is // more specific link), so the link to 'user' will not be in the breadcrumb. - 'menu_name' => 'navigation', + 'menu_name' => 'tools', ); $items['user/%user/view'] = array( @@ -1719,7 +1719,7 @@ function user_menu_link_alter(&$link) { $link['options']['alter'] = TRUE; } - // Force the Logout link to appear on the top-level of 'user-menu' menu by + // Force the Logout link to appear on the top-level of 'account' menu by // default (i.e., unless it has been customized). if ($link['link_path'] == 'user/logout' && $link['module'] == 'system' && empty($link['customized'])) { $link['plid'] = 0; diff --git a/core/themes/bartik/color/preview.css b/core/themes/bartik/color/preview.css index a5d6a2f..f6df37b 100644 --- a/core/themes/bartik/color/preview.css +++ b/core/themes/bartik/color/preview.css @@ -39,20 +39,20 @@ margin-left: 15px; padding-top: 34px; } -#preview-main-menu { +#preview-main-navigation { clear: both; padding: 0 15px 3px; } -#preview-main-menu-links a { +#preview-main-navigation-links a { color: #d9d9d9; padding: 0.6em 1em 0.4em; } -#preview-main-menu-links { +#preview-main-navigation-links { font-size: 0.929em; margin: 0; padding: 0; } -#preview-main-menu-links a { +#preview-main-navigation-links a { color: #333; background: #ccc; background: rgba(255, 255, 255, 0.7); @@ -62,19 +62,19 @@ -moz-border-radius-topright: 8px; border-top-right-radius: 8px; } -#preview-main-menu-links a:hover, -#preview-main-menu-links a:focus { +#preview-main-navigation-links a:hover, +#preview-main-navigation-links a:focus { background: #fff; background: rgba(255, 255, 255, 0.95); } -#preview-main-menu-links a:active { +#preview-main-navigation-links a:active { background: #b3b3b3; background: rgba(255, 255, 255, 1); } -#preview-main-menu-links li a.active { +#preview-main-navigation-links li a.active { border-bottom: none; } -#preview-main-menu-links li { +#preview-main-navigation-links li { display: inline; list-style-type: none; padding: 0.6em 0 0.4em; diff --git a/core/themes/bartik/color/preview.html b/core/themes/bartik/color/preview.html index ae9aa14..4336615 100644 --- a/core/themes/bartik/color/preview.html +++ b/core/themes/bartik/color/preview.html @@ -3,8 +3,8 @@
Bartik
-
-