Commit 0a3822d1 authored by TravisCarden's avatar TravisCarden

Issue #1966056 by TravisCarden: Fixed '#menu_name()' has no effect.

parent 55e8cd7d
...@@ -26,8 +26,9 @@ ...@@ -26,8 +26,9 @@
* corresponding menu item. * corresponding menu item.
* - #help: (optional) User help to be displayed in the "System help" block * - #help: (optional) User help to be displayed in the "System help" block
* via hook_help(). * via hook_help().
* - #menu_name: (optional) Set this to a custom menu if you don't want your * - #menu_name: (optional) The machine name of a menu to place the checklist
* item to be placed in Navigation. * into (e.g. "main-menu" or "navigation"). If this is omitted, Drupal will
* try to infer the correct menu placement from the specified path.
* - #weight: (optional) A floating point number used to sort the list of * - #weight: (optional) A floating point number used to sort the list of
* checklists before being output. Lower numbers appear before higher * checklists before being output. Lower numbers appear before higher
* numbers. * numbers.
......
...@@ -132,7 +132,7 @@ function checklistapi_menu() { ...@@ -132,7 +132,7 @@ function checklistapi_menu() {
'access arguments' => array($id), 'access arguments' => array($id),
'file' => 'checklistapi.pages.inc', 'file' => 'checklistapi.pages.inc',
); );
if (!empty($checklist['#menu_name'])) { if (!empty($definition['#menu_name'])) {
$items[$definition['#path']]['menu_name'] = $definition['#menu_name']; $items[$definition['#path']]['menu_name'] = $definition['#menu_name'];
} }
......
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