mardi 4 août 2015

views_get_view_result array is missing data?

The array I get using views_get_view_result appears to return everything I need except the corresponding labels for keys in list fields. I want to print the labels, rather than the keys -- Is there a way to have them included in the array, without inserting them separately? Here's what I'm currently getting in the array:

< snip >
    [field_contact] => Array
      (
        [und] => Array
          (
            [0] => Array
              (
                [value] => db
              )
            )
          )
< snip >

When I setup this field, I created key|label pairs, and I want to print the label, not the pair. Such as:

db|Dries Buytaert

Any ideas? Thanks for looking!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire