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

Issue #2249723 by andrei.dincu: Make xmlsitemap settings tab in vertical tabs...

Issue #2249723 by andrei.dincu: Make xmlsitemap settings tab in vertical tabs in xmlsitemap_add_link_bundle_settings()
parent 1c260e12
......@@ -563,7 +563,7 @@ function xmlsitemap_add_link_bundle_settings(array &$form, array &$form_state, $
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#access' => \Drupal::currentUser()->hasPermission('administer xmlsitemap'),
'#group' => 'additional_settings',
'#group' => 'advanced',
'#attached' => array(
'js' => array(
'vertical-tabs' => drupal_get_path('module', 'xmlsitemap') . '/js/xmlsitemap.js',
......@@ -577,7 +577,7 @@ function xmlsitemap_add_link_bundle_settings(array &$form, array &$form_state, $
);
// 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']);
}
......@@ -603,16 +603,6 @@ function xmlsitemap_add_link_bundle_settings(array &$form, array &$form_state, $
),
),
);
$form += array('#submit' => array());
array_unshift($form['#submit'], 'xmlsitemap_link_bundle_settings_form_submit');
if (isset($form['submit'])) {
$form['submit'] += array('#weight' => 40);
}
if (isset($form['delete'])) {
$form['delete'] += array('#weight' => 50);
}
}
function xmlsitemap_link_bundle_settings_form(array $form, array &$form_state, array $bundle) {
......
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