Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
286
Merge Requests
286
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
4cd0dd8e
Commit
4cd0dd8e
authored
Mar 14, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#401916
by stompeers: change order of fields on menu creation form.
parent
56e1c5d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/menu/menu.admin.inc
modules/menu/menu.admin.inc
+6
-6
No files found.
modules/menu/menu.admin.inc
View file @
4cd0dd8e
...
...
@@ -238,6 +238,12 @@ function menu_edit_item(&$form_state, $type, $item, $menu) {
// This is an add form, initialize the menu link.
$item
=
array
(
'link_title'
=>
''
,
'mlid'
=>
0
,
'plid'
=>
0
,
'menu_name'
=>
$menu
[
'menu_name'
],
'weight'
=>
0
,
'link_path'
=>
''
,
'options'
=>
array
(),
'module'
=>
'menu'
,
'expanded'
=>
0
,
'hidden'
=>
0
,
'has_children'
=>
0
);
}
$form
[
'menu'
][
'link_title'
]
=
array
(
'#type'
=>
'textfield'
,
'#title'
=>
t
(
'Menu link title'
),
'#default_value'
=>
$item
[
'link_title'
],
'#description'
=>
t
(
'The link text corresponding to this item that should appear in the menu.'
),
'#required'
=>
TRUE
,
);
foreach
(
array
(
'link_path'
,
'mlid'
,
'module'
,
'has_children'
,
'options'
)
as
$key
)
{
$form
[
'menu'
][
$key
]
=
array
(
'#type'
=>
'value'
,
'#value'
=>
$item
[
$key
]);
}
...
...
@@ -275,12 +281,6 @@ function menu_edit_item(&$form_state, $type, $item, $menu) {
'#description'
=>
l
(
$item
[
'link_title'
],
$item
[
'href'
],
$item
[
'options'
]),
);
}
$form
[
'menu'
][
'link_title'
]
=
array
(
'#type'
=>
'textfield'
,
'#title'
=>
t
(
'Menu link title'
),
'#default_value'
=>
$item
[
'link_title'
],
'#description'
=>
t
(
'The link text corresponding to this item that should appear in the menu.'
),
'#required'
=>
TRUE
,
);
$form
[
'menu'
][
'description'
]
=
array
(
'#type'
=>
'textarea'
,
'#title'
=>
t
(
'Description'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment