Skip to main content
edited tags
Link
Tim
  • 1
  • 1
Source Link
Tim
  • 1
  • 1

How would I create conditional fields on install?

I am creating a content type in a module so that it gets created on install.

I got the fields and field instances in separate files and include those files in the .install file. I then call field_create_field() and field_create_instance() in the install file.

However, I also have conditional_fields for this content type. I have the code to create the conditions, what I need to know is what function do I now call from the .install file like I did with the other two field functions?