Does someone know why xmlsitemap.module implements every hook_node_comment_ hooks, with a StdClass casting for the object passed in param ? example :
/**
* Implements hook_comment_delete().
*/
function xmlsitemap_node_comment_delete(stdClass $comment) {
xmlsitemap_node_comment_update($comment);
}
(xmlsitemap_node.module l.95)
A teammate overrides some Drupal default comment behaviours by declaring a new entity, with CustomComment as "entity class" name.
Then, when we want to delete a comment, this xmlsitemap's casting fires an error because the loaded comment is not anymore a StdClass object, but a CustomComment object.
Do I have to hack that module ? Any Idea ?