I'd like to know how to create an entity-reference field programmatically, and where should I put this script.
Could I call field_create_instance()
in hook_form_alter()
?
I'm using Drupal 7.
I'd like to know how to create an entity-reference field programmatically, and where should I put this script.
Could I call I'm using Drupal 7. |
||||
|
field_create_instance() is normally called in You don't call it in A call to |
|||
|