title: Drupal allowed_values_function does not get called when creating a field
body: <p>For some reason my allowed_values_function never gets called when showing a field on a user bundle. Code:</p>
  
  <pre><code>function get_business_units()
  {
      $options = entity_load('business_unit', FALSE, NULL, FALSE);
      $opt = bu_to_list_values($options);
      return $opt;
  }
  
  
  function MYMODULE_enable()
  {
      if (!field_info_field('field_user_business_unit')) {
          $field = array(
              'field_name' =&gt; 'field_user_business_unit', 
              'type' =&gt; 'text', 
              'settings' =&gt; array(
                  'allowed_values' =&gt; array(),
                  'allowed_values_function' =&gt; 'get_business_units',
              )
          );
          field_create_field($field);
  
          // Create the instance on the bundle.
          $instance = array(
              'field_name' =&gt; 'field_user_business_unit', 
              'entity_type' =&gt; 'user', 
              'label' =&gt; 'Business Unit', 
              'bundle' =&gt; 'user', 
              'required' =&gt; FALSE,
              'settings' =&gt; array(
                  'user_register_form' =&gt; 1,
          ),
              'widget' =&gt; array(
                  'type' =&gt; 'options_select',
          ),
          );
          field_create_instance($instance);
      }
  }
  </code></pre>
  
  <p>The field is created, and even displayed on the users "edit" page when editing their info. But the only value is "Select" or "None". My method is never called (I even placed a debug point). This is all in MYMODULE.install file.</p>