[support] how to add an edit field into a node?

Davide Michel 'ZioBudda' Morelli michel at ziobudda.net
Mon Nov 10 08:04:03 UTC 2008


Simone Dal Maso ha scritto:
> Hi,
> do you know how to add a simple edit field into a node?
> CCk is great, but it works for "type of content". 
> Now, I explain better:
> I have a simple page that is a presentation of my mailing list, and in this page I copied the html code for enabling subscribing/unsubscribing procedure. The mailing list is provided by dadamail, not drupal.
>
> It works well, but there is not antispam control, because the captcha module doesn't see any form inside the page, and, from the captcha perspective, it's true, since the html code is a block provided by dadamail, not a form of drupal.
> So, I'd like to add a single edit field, where the user put his name, captcha sees a sort of form and start working properly.
> Well, the editfield is simply unuseful, but I need it for enabling captcha.
>   
Create a Module that add the "input" field only for that form. Search 
FORM API in the documentation. The function is *_form_alter().

M.

-- 
Michel 'ZioBudda' Morelli                       michel at ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

http://www.ziobudda.net                         ICQ: 58351764  
http://www.ziobuddalabs.it                      Skype: zio_budda
http://www.ziodrupal.net       			MSN: michel at ziobuddalabs.it                   
						JABBER: michel at ziobuddalabs.it



More information about the support mailing list