Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By jyuza on
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
try
try http://ericlondon.com/programmatically-removing-links-xml-sitemap
http://goo.gl/icjPn
You should be able to use
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-...