cfpb/cms-toolkit — pull request #14 by gboone (2014-08-18 20:33:09+00:00)
Title: Creates fieldset functionality

Now you can make sets of fields within a meta box. Just pass a `fields` array value with `type = fieldset`, then inside a key called `fields` pass the form fields like normal. Like this:
```
'phone-2' => array(
'title' => 'Alternate Phone number',
'slug' => 'phone-2',
'type' => 'fieldset',
'fields' => array(
array(
'type' => 'text',
'max_length' => 11,
'label' => 'Number',
),
array(
'type' => 'text',
'max_length' => 40,
'label' => 'Description',
),
),
'params' => array(),
'max_length' => 10,
'meta_key' => 'phone-2',
'howto' => 'This can be an alternative contact number. Use the description field to explain what it is.',
),
```