Commit b7a93394 authored by Dave Reid's avatar Dave Reid

#811058 by Dave Reid: Do not display 'XML sitemap' fieldset on node forms if...

#811058 by Dave Reid: Do not display 'XML sitemap' fieldset on node forms if the user has the 'administer nodes' permission.
parent 53cc59cb
......@@ -171,7 +171,6 @@ function xmlsitemap_node_form_alter(&$form, $form_state, $form_id) {
// Add the link options.
module_load_include('inc', 'xmlsitemap', 'xmlsitemap.admin');
xmlsitemap_add_form_link_options($form, 'node', $form['type']['#value'], $form['nid']['#value']);
$form['xmlsitemap']['#access'] |= user_access('administer nodes');
$form['xmlsitemap']['#weight'] = 30;
}
}
......
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