@@ -395,7 +395,7 @@ function menu_edit_item_validate($form, &$form_state) {
|
||||
else {
|
||||
unset($item['options']['fragment']);
|
||||
}
|
||||
if ($item['link_path'] != $parsed_link['path']) {
|
||||
if (isset($parsed_link['path']) && $item['link_path'] != $parsed_link['path']) {
|
||||
$item['link_path'] = $parsed_link['path'];
|
||||
}
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Informs modules that a custom menu was created.
|
||||
* Respond to a custom menu creation.
|
||||
*
|
||||
* This hook is used to notify modules that a custom menu has been created.
|
||||
* Contributed modules may use the information to perform actions based on the
|
||||
@@ -34,7 +34,7 @@ function hook_menu_insert($menu) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Informs modules that a custom menu was updated.
|
||||
* Respond to a custom menu update.
|
||||
*
|
||||
* This hook is used to notify modules that a custom menu has been updated.
|
||||
* Contributed modules may use the information to perform actions based on the
|
||||
@@ -59,14 +59,14 @@ function hook_menu_update($menu) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Informs modules that a custom menu was deleted.
|
||||
* Respond to a custom menu deletion.
|
||||
*
|
||||
* This hook is used to notify modules that a custom menu along with all links
|
||||
* contained in it (if any) has been deleted. Contributed modules may use the
|
||||
* information to perform actions based on the information entered into the menu
|
||||
* system.
|
||||
*
|
||||
* @param $link
|
||||
* @param $menu
|
||||
* An array representing a custom menu:
|
||||
* - menu_name: The unique name of the custom menu.
|
||||
* - title: The human readable menu title.
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
files[] = menu.test
|
||||
configure = admin/structure/menu
|
||||
|
||||
; Information added by drupal.org packaging script on 2013-03-07
|
||||
version = "7.21"
|
||||
; Information added by drupal.org packaging script on 2013-04-03
|
||||
version = "7.22"
|
||||
project = "drupal"
|
||||
datestamp = "1362616996"
|
||||
datestamp = "1365027012"
|
||||
|
||||
|
@@ -318,7 +318,7 @@ class MenuTestCase extends DrupalWebTestCase {
|
||||
* @param string $menu_name Menu name.
|
||||
*/
|
||||
function addInvalidMenuLink($menu_name = 'navigation') {
|
||||
foreach (array('-&-', 'admin/people/permissions') as $link_path) {
|
||||
foreach (array('-&-', 'admin/people/permissions', '#') as $link_path) {
|
||||
$edit = array(
|
||||
'link_path' => $link_path,
|
||||
'link_title' => 'title',
|
||||
|
Reference in New Issue
Block a user