title: When creating a Drupal 7 content type programmatically, is there a way to add tuples of fields?
body: <p>In Drupal 7, I'd like to create a Person content type. A person may have multiple profiles - an administrator should be able to select which profile will be considered the primary one. So, that means that I need a tuple consisting of:</p>
  
  <p>A textarea, for the profile text<br>
  A checkbox, indicating that this is the primary profile<br>
  A textbox, for naming this particular profile</p>
  
  <p>I need functionality to behave like that of any of the lists: I can click "Add another Item", and a set of all three of these fields will appear.</p>
  
  <p>I have a vague idea of how this can be executed, but it involves using the form API to add fields before the form renders each time, as well as the necessary AJAX behavior. This seems a bit overcomplicated, since this would also necessitate creating an additional DB table to hold these tacked-on fields.</p>
  
  <p>Is there a relatively simple way of doing this solely through <code>hook_install()</code>?</p>