to populate options in select list, you can call a function in the cck / fieldapi UI and that function do all the trick.
I believe this can be done without form alter.
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
--
[ Drupal support list | http://lists.drupal.org/ ]