function checkoff_head in Database Administration 5
Adds the javascript for selecting all tables.
@todo Can be replaced by Checkall module.
Related topics
1 call to checkoff_head()
File
- ./
dba.module, line 1512 - Allows administrators direct access to their Drupal database. Written by Jeremy Andrews <jeremy@kerneltrap.org>, June 2004. PostgreSQL functionality provided by AAM <aam@ugpl.de> Major security audit, porting, and maintenance by Derek…
Code
function checkoff_head() {
return "<script type=\"text/javascript\">function checkoff(form,toggle){ var i=0;\tfrm=document.forms[form];\tlen = frm.elements.length;\tfor( i=0 ; i<len ; i++) {\tif (frm.elements[i].type=='checkbox') {\tfrm.elements[i].checked=toggle;\t}\t}} </script>";
}