Last active
          October 11, 2015 08:07 
        
      - 
      
- 
        Save ss81/3828375 to your computer and use it in GitHub Desktop. 
    How to get All options of a 'select' field?
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| $field = field_info_field('field_name'); | |
| $allowed_values = list_allowed_values($field); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment