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