Given the following select list for the "field_priority" field, how can I display the label, given the key (e.g. 0, 1, 3)?
0|Low
1|Medium
2|High
3|Urgent
Given the following select list for the "field_priority" field, how can I display the label, given the key (e.g. 0, 1, 3)?
0|Low
1|Medium
2|High
3|Urgent
You can get it nice and quickly using
field_info_field()
:There's a whole host of field functions in field.info.inc, they're very handy.