In xmlsitemap_link_delete_multiple() we have a @todo for invoking a hook when XML Sitemap links are deleted. Let's do it :)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amateescu’s picture

Status: Active » Needs review
FileSize
1.68 KB

Another @todo was fixed in this patch as well, because #151452: Uninstalling modules does not follow dependencies and can lead to WSOD has been fixed for a long time :)

Status: Needs review » Needs work

The last submitted patch, 1410600-hook_xmlsitemap_link_delete.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review

Bot hickup. I did a manual retest and it looks good now.

amateescu’s picture

Title: Add hook for link deletion » Add hooks for all xmlsitemap_link_* functions
FileSize
4.42 KB

This one takes care of xmlsitemap_link_update_multiple() and xmlsitemap_link_delete_multiple() as well.

amateescu’s picture

FileSize
4.63 KB

Ha, good luck getting link ids and types with the hook invocation order from #4 :) This one should be better.

nikolabintev’s picture

I also need these functionalities, but the patches created 7 years ago cannot be applied now. I'm applying a patch compatible with the latest dev version of the module.