[support] retrieving key from selection list
Andreas Deininger
adeininger at googlemail.com
Tue Nov 20 07:57:01 UTC 2007
2007/11/19, Greg Holsclaw <Greg.Holsclaw at trouvemedia.com>:
> Did you explicitly define key|value pairs in the CCK definition,
Yes.
> or did
> you just place values in.
No.
> For my site, I did place key|value in the CCK
> definition and I get
>
> [field_required_tools] => Array
> (
> [0] => Array
> (
> [value] => 0
> [view] => No
> )
>
> )
That's exactly what I'm looking for and would solve my problem.
> I believe if you just placed a list of values, it will not assign keys.
> Or we are using different versions of CCK.
I'm using Drupal 5.3 (with PostgreSQL as database backend), Content
module 5.x-1.6-1 and Views module 5.x-1.6. I think these are the
latest versions.
Does anyone have an idea why [view] is not showing up in my array?
Thanks in advance
Andreas
More information about the support
mailing list