- I've got js in custom block module that acts on a form in block. js only needed if variable=1 Best place for drupal_add_js? #drupal #lazyweb
you would have it in your module code
use the #attached form api property. alternatively hook_block_view(), but read api comments about caching.