This is perhaps out of scope for this module but it would save steps in moderating. On the screen that lets you choose how to report the spam, it would be nice to have checkboxes to ban user and ban the IP all in one shot.


#4 245689-report-page.png43.27 KBDave Reid


zooki’s picture

Has this been implemented yet??

If not, what would be the right solution?

Also, can we configuer Mollom to not allow certain keywords / URLs..

Dries’s picture

The Mollom screens can probably extended to provide that functionality. For the banning itself, we could leverage the IP blocking functionality that is part of Drupal core. This should be easy to implement.

Michelle’s picture

Version:5.x-1.1» 6.x-1.x-dev

Nice. :) When I asked this a year ago, I was totally on Drupal 5. I've now moved all but one site to D6 and that one is in progress. So I'm changing my request to D6. :)


Dave Reid’s picture

Title:Delete and ban user / IP» Integrate actions with the report to Mollom screen
new43.27 KB

Marked #603174: Delete comment AND block user AND delete all comments by user as a duplicate of this issue.

The best way to accomplish this would to integrate actions with the report to Mollom page. Here's a quick mockup of how it would work:


function mollom_menu() {
$items['mollom/report/node/%node'] = array(
'title' => 'Report to Mollom',
'page callback' => 'mollom_report_node_page',
'page arguments' => array(3),
'access callback' => TRUE,
mollom_report_node_page($node) {
drupal_get_form('mollom_report_form', 'node', $node, $node->title, user_load($node->uid));
mollom_get_object_actions($type) {
$actions = array();
$query = db_query("SELECT aid, description FROM {actions} WHERE type = '%s'", $type);
  while (
$action = db_fetch_object($query)) {
$actions[$action->aid] = $action->description;
mollom_report_form($form_state, $type, $object, $object_title, $account = NULL) {
$form['object'] = array('#type' => 'value', '#value' => $object);
$form['account'] = array('#type' => 'value', '#value' => $account);
$form['object_feedback'] = array(
'#type' => 'select',
'#title' => t('How to report to Mollom'),
'#options' => array(
'none' => t("Don't send feedback to Mollom"),
'spam' => t('Report as spam or unsolicited advertising'),
'profanity' => t('Report as obscene, violent or profane content'),
'low-quality' => t('Report as low-quality content or writing'),
'unwanted' => t('Report as unwanted, taunting or off-topic content'),
'#default_value' => 'none',
'#description' => t("Mollom is a web service that helps you moderate your site's content: see <a href="<a href=""></a>" rel="nofollow">"></a></a> for more information. By sending feedback to Mollom, you teach Mollom about the content you like and dislike, allowing Mollom to do a better job helping you moderate your site's content. If you want to report multiple posts at once, you can use Mollom's bulk operations on the content and comment administration pages."),
$object_actions = mollom_get_object_actions($type);
$form['object_action'] = array(
'#type' => 'select',
'#title' => t('Action to perform on node %nodetitle', array('%nodetitle' => $object_title)),
'#options' => array(0 => 'None') + $object_actions,
'#defaul_value' => 0,
'#access' => $object_actions,
$user_actions = mollom_get_object_actions('user');
$form['user_action'] = array(
'#type' => 'select',
'#title' => t('Action to perform on authoring user %username', array('%username' => $account->name)),
'#options' => array(0 => 'None') + $user_actions,
'#defaul_value' => 0,
'#access' => $account && $account->uid,
t('Are you sure you want to report %object to Mollom?', array('%object' => $object_title)),
$_GET['destination']) ? $_GET['destination'] : '',
t('This action cannot be undone.'),
Dave Reid’s picture

Better yet might be to have 'reported node to Mollom' and 'reported comment to Mollom' available as a trigger which can be assigned actions normally.

sun’s picture

By implementing #717212: Remove "report to Mollom" links and integrate with entity delete confirmation forms instead, you will be able to install "whatever" module that integrates with the existing forms, i.e. existing modules. Not duplicating functionality. Not sure whether such a module exists though, but at least Comment module already integrates with trigger/actions and related modules.

Therefore, I'm inclined to mark this won't fix. Thoughts?

sun’s picture

Title:Integrate actions with the report to Mollom screen» Integrate actions with reporting functionality on delete confirmation forms
Version:6.x-1.x-dev» 7.x-1.x-dev

Revised title. Bumping to 7.x.

sam_squarewave’s picture

I keep getting spam accounts and this feature would be killer.

sun’s picture

Version:7.x-1.x-dev» 7.x-2.x-dev