[prev in list] [next in list] [prev in thread] [next in thread] 

List:       drupal-development
Subject:    [development] Custom validation function for Block configuration
From:       travis.lu () nurunchina ! com (Travis Lu)
Date:       2008-03-17 3:54:12
Message-ID: 20080317040029.412C310868B () whitealder ! osuosl ! org
[Download RAW message or body]

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 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic