The trash module is in dev state. However, it may be helpful to report that with the current releases of Drupal, the Trash module dated 2008-Feb-22 works OK in Drupal 6.1, but does not work at all in 5.7. Trash can be installed, but on enabling it any call to

http://localhost/drupal5/admin/build/modules

results in:

Fatal error: Cannot use string offset as an array in C:\x\htdocs\drupal5\sites\all\modules\trash\trash.module on line 154

Later, calling http://localhost/drupal5/admin/ results in repeated warning:

* warning: Missing argument 3 for trash_form_alter(), called in C:\x\htdocs\drupal5\includes\form.inc on line 365 and defined in drupal5\sites\all\modules\trash\trash.module on line 153.

The module can not be uninstalled henceforth!

Gregor

Comments

rötzi’s picture

Status: Active » Fixed

Fixed in CVS. Thanks for reporting.

The bug was that the form_alter hook had the arguments of the Drupal 6 version, even in the Drupal 5 branch.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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