[support] Drupal 7: How to set values (allowed_values) for field (select) dynamically (from module)?

Juraj Chlebec havran at gmail.com
Fri Jun 29 16:29:49 UTC 2012


Hi,

I now about hook_form_alter() for modification form elements, but i have
bad feeling use arrays like:

$form['profile_main']['field_year_of_graduation'][LANGUAGE_NONE][0]

I think sometimes can be LANGUAGE_NONE index changed and then my code not
work.

Is there better way for set allowed_values dynamically or i need create my
custom field?

Havran

-- 
Juraj Chlebec aka Havran
http://www.svoji.sk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120629/164e8c11/attachment.html 


More information about the support mailing list