Angie Byron wrote:
I was feeling all crappy all weekend so I took the opportunity to make some headway on Module Builder module. For those who don't know/remember, this is like a web-based script for auto-generating module source code. You check off the hooks you want to use, and it auto-generates some skeleton code for you so you don't have to go and look up function declarations. See http://drupal.org/node/55011 for more info.
Anyway!
The next big thing I'd like to do is allow for the definition of "groups" of hooks. Check here for a nice, pretty mock-up that Jeff Robbins put together: http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/sandbox/webchi... module_builder/modulemaker.graffle.pdf
So when I check "custom node type," the script should automatically go and check off hook_node_info, hook_insert, hook_update, hook_load, etc.
Could someone show me a _BASIC_ example of how to do something like this, with just static HTML checkboxes and an onclick handler on one of them? I've had a really hard time trying to narrow down search terms for an example; most of the JS checkbox examples I've found seem to be written at the "Duh. What is a checkbox?" level. :\
Here might be a useful example: http://www.mattkruse.com/javascript/checkboxgroup/index.html Here are my search results: http://www.google.com/search?q=javascript%20checkbox%20groups%20checked&sour... =mozilla2&ie=utf-8&oe=utf-8 Good luck, -- Bertrand Mansion http://www.mamasam.com - creative internet solutions http://golgote.freeflux.net - blog