Hi,

I am trying to remove the xml sitemap to one of my content type. In doing so, I tried the classical method consisting of the use of hook_form_alter and (for example) :
unset($form['locations']); // this one works and remove the location fieldset
unset($form['xmlsitemap']); // this one ain't working

For some reason I can't remove/hide the xmlsitemap.

How can I proceed ? Thanks for your time !

Comments

stackpr’s picture

You should be able to use your preferred hook_form_alter code if you adjust the weight in the {system} table for xmlsitemap_node.

http://witti.ws/blog/2012/08/07/remove-drupal-xml-sitemap-fieldset-node-...