Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
xmlsitemap
Commits
a843dfec
Commit
a843dfec
authored
Jun 27, 2014
by
andrei.dincu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2249723
by andrei.dincu: Include xmlsitemap form element in vertical tabs if it exists
parent
2436d044
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
xmlsitemap.module
xmlsitemap.module
+2
-2
No files found.
xmlsitemap.module
View file @
a843dfec
...
...
@@ -1404,7 +1404,7 @@ function xmlsitemap_add_form_link_options(array &$form, $entity, $bundle, $id) {
'#collapsible'
=>
TRUE
,
'#collapsed'
=>
!
$link
[
'status_override'
]
&&
!
$link
[
'priority_override'
],
'#access'
=>
$currentUser
->
hasPermission
(
'administer xmlsitemap'
)
||
xmlsitemap_link_bundle_access
(
$bundle_info
),
'#group'
=>
'ad
ditional_settings
'
,
'#group'
=>
'ad
vanced
'
,
'#attached'
=>
array
(
'js'
=>
array
(
'vertical-tabs'
=>
drupal_get_path
(
'module'
,
'xmlsitemap'
)
.
'/js/xmlsitemap.js'
,
...
...
@@ -1413,7 +1413,7 @@ function xmlsitemap_add_form_link_options(array &$form, $entity, $bundle, $id) {
);
// Hack to remove fieldset summary if Vertical tabs is not enabled.
if
(
!
isset
(
$form
[
'ad
ditional_settings
'
]))
{
if
(
!
isset
(
$form
[
'ad
vanced
'
]))
{
unset
(
$form
[
'xmlsitemap'
][
'#attached'
][
'js'
][
'vertical-tabs'
]);
}
...
...
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