When the spam module is enabled an option S with the Value 0 appears in the Update Options link. This is caused by the default option in the switch statement contained in the function spam_reported_nodes_operations.

CommentFileSizeAuthor
#2 spam.module_0.diff1.17 KBmvc

Comments

nancydru’s picture

I don't have this in the "-dev" version.

mvc’s picture

Version: 5.x-1.0 » 5.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1.17 KB

I get this too (Drupal 5.2, spam.module 5.x-1.x-dev from 2007-09-08 datestamp 1189210025 -- please include the $Id$ tag so we can know which CVS version of the file we're using!)

The internal function spam_node_operations() is accidentally implementing hook_node_operations(), which was introduced in Drupal 5 and is meant for mass node operations at /admin/content/node. To fix this, use a non-reserved function name.

Trivial patch attached.

jeremy’s picture

Status: Needs review » Needs work

What format is your patch? I'm not sure what the "!" is supposed to mean. Unable to apply.

jeremy’s picture

Status: Needs work » Fixed

Manually applied patch. Thanks for debugging this.

Anonymous’s picture

Status: Fixed » Closed (fixed)