Valores permitidos de un campo de tipo select

23/02/2016

En Drupal 7:

// Load info field.
$info_field = field_info_field('field_name');
// Get allowed values from select field.
$options = list_allowed_values($info_field);

En Drupal 6:

$allowed_values = content_allowed_values(content_fields('field_name'));