I'm really sorry but I can't understand how to generate my list programmatically in the "Autocomplete for allowed values list" widget (I'd like to query the db to do that).
Maybe it's a drupal 6 only feature?
thanks!
Mt
I'm really sorry but I can't understand how to generate my list programmatically in the "Autocomplete for allowed values list" widget (I'd like to query the db to do that).
Maybe it's a drupal 6 only feature?
thanks!
Mt
Comments
Comment #1
bleen commentedThis is something you should be able to do in a number of ways .. this is a blog post that you should be able to apply here:
http://sivaji.drupalgardens.com/how-programmatically-change-field-instan...
Comment #2
seren10pity commentedHi, my question isn't how, but where :
In the "allowed values" field of Autocomplete settings page, I can't write php. I thought I would just need to use a hook_form, but I can't see the options list I used to test the field in it...
Maybe it's an idiot question, but WHERE am I supposed to add my php snippet to generate allowed values ?
Or with witch widget ?
thanks ;)
Comment #3
acb commentedI too would like to know the answer to this question.... where does one generate allowed-values programatically?
Comment #4
fureigh commentedThat should make the 'PHP code' box appear.