[support] Problem for alter a cck's select list
Michel Morelli
michel at ziobuddalabs.it
Thu Sep 17 14:11:23 UTC 2009
Hi all. I have a cck field of type "select list". The "allowed values"
are inserted/take via a function, called inside the "php code" field.
It works: in the node/add/mycontent form I can see all "options" of the
select list.
Now, I have a module that need to rebuild the values of that select
list, but without success.
I have created the hook_form_alter() function, I have altered the form
and insert my #options values for that field, but when I see the page I
found the old #options values.
I have used devel modules and via kpr($form) I have see that when my
alter form function is called the #options value is not present. I have
changed the 'weight' in system table and my hook_form_alter is called
after cck alter form (I have see it via dmp()).
Any help ?
M.
--
Michel 'ZioBudda' Morelli michel at ziobuddalabs.net
Sviluppo applicazioni CMS DRUPAL e 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