[development] JS gurus: please help me check checkboxes with a
checkbox ; )
Angie Byron
drupal-devel at webchick.net
Mon Mar 27 06:20:59 UTC 2006
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/webchick/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. :\
Thanks very much in advance,
-Angie
More information about the development
mailing list