[development] Custom validation function for Block configuration form?

Travis Lu travis.lu at nurunchina.com
Mon Mar 17 03:54:12 UTC 2008


Hi all,

 

I've just created my own block module, and a configuration form for it. 

 

Now I just wonder whether it is possible to add my own validation function
before Drupal save the block configuration? 

 

I tried to add the code like:

 

$form[#validate][] = 'my_validation_function_name';

 

But it seems it doesn't help.

 

So the question is whether Drupal support to do this during the
configuration of block. If so, then how I can achieve this?

 

Thanks in advance.

 

travis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20080317/d701bcbe/attachment.htm 


More information about the development mailing list