I've taken tenrapid's code from http://drupal.org/node/20641 and turned it into a module. It doesn't do exactly the same thing as tenrapid's patches to node.module and comment.module, because hook_form_alter can only do so much, but it does add a 'Check All/None' checkbox to the comment and content admin pages.

I've tested this in ff, konq, opera, and ie versions 5, 5.5, and 6.

CommentFileSizeAuthor
#1 checkall.js_1.txt974 byteswrunt
checkall.module1.52 KBwrunt

Comments

wrunt’s picture

StatusFileSize
new974 bytes

and here's the js

jonathan_hunt’s picture

FYI, I tweaked the module code to lookup the filesystem path to the module, so that the .module and .js files can be installed in a module dir:

--- modules/checkall/checkall.module    (revision 5122)
+++ modules/checkall/checkall.module    (working copy)
@@ -35,7 +35,7 @@
  *   The checkbox is added dynamically with Javascript. 
  */
 function theme_checkbox_check_all($element) {
-  drupal_add_js('modules/jstools/checkall/checkall.js');
+  drupal_add_js(drupal_get_path('module', 'checkall') .'/checkall.js');
nedjo’s picture

Status: Needs review » Closed (won't fix)

Version no longer maintained.