Commit a843dfec authored by andrei.dincu's avatar andrei.dincu

Issue #2249723 by andrei.dincu: Include xmlsitemap form element in vertical tabs if it exists

parent 2436d044
......@@ -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' => 'additional_settings',
'#group' => 'advanced',
'#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['additional_settings'])) {
if (!isset($form['advanced'])) {
unset($form['xmlsitemap']['#attached']['js']['vertical-tabs']);
}
......
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