Hide "report to mollom" button from node links
Juanzo - August 20, 2009 - 22:26
| Project: | Mollom |
| Version: | 6.x-1.10 |
| Component: | User interface |
| Category: | support request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I see that in the last release, every node appears with a "report to mollom" button to users with administer node permission. Is it possible to disable this?

#1
Yes, it appears if the Mollom module is configured, the user has the administer nodes permission, and that node type is protected by Mollom. If you don't need Mollom protection for that node type form, then you should disable it within admin/settings/mollom and the link will go away. Otherwise, you might want to be able to report any spam that comes through.
You could also create a small custom module to hide that link:
<?php/**
* Implementation of hook_link_alter().
*/
function mollomhide_link_alter(&$links, $node) {
if ($node->type == 'my_node_type') {
unset($links['mollom_comment_report']);
}
}
?>
#2
Thanks for your reply Dave! Is there a way to hide that link from every node but leave protection enabled?
#3
Automatically closed -- issue fixed for 2 weeks with no activity.
#4
That certainly helped, thanks..
#5
If anyone could bring light to hide that link from every node but leave protection enabled, it will be greatly appreciated.
#6
I would also like to have that report to Mollom link removed (or even better, changed in configuration) as an option with user radio button to click for each content type (or user could make it for all content unless specificaly enabled) with option to change the tag line (from report to Mollom to Spam?).
I believe that it is easier to change module as it will add functionality than to expect everyone to hooks whenever something custom is needed.