Drupal 7 field widget - allowed values list I need to have a select widget but with custom allowed values per user. Since in D7 I cannot use php code, I was wondering if there is some kind of hook I could use to achieve that functionality.

Thanks
This would be hook_field_widget_form(&amp;$form, &amp;$form_state, $field, $instance, $langcode, $items, $delta = 0).

The example code for the hook, reported in the documentation is the following one.

function hook_field_widget_form(&amp;$form, &amp;$form_state, $field, $instance, $langcode, $items, $delta, $element) {
  $element += array(
    '#type' =&gt; $instance['widget']['type'], 
    '#default_value' =&gt; isset($items[$delta]) ? $items[$delta] : '',
  );
  return $element;
}