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
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

Dave Reid - August 21, 2009 - 22:30
Status:active» fixed

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

Juanzo - August 24, 2009 - 20:45

Thanks for your reply Dave! Is there a way to hide that link from every node but leave protection enabled?

#3

System Message - September 7, 2009 - 20:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#4

userid - October 20, 2009 - 10:33

That certainly helped, thanks..

#5

Juanzo - October 20, 2009 - 20:14

If anyone could bring light to hide that link from every node but leave protection enabled, it will be greatly appreciated.

#6

MacMladen - December 24, 2009 - 07:56
Status:closed» active

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.

 
 

Drupal is a registered trademark of Dries Buytaert.