dhorrigan/Formation — pull request #4 by MitchellMcKenna (2011-11-28 06:08:16+00:00)
Title: Fix for modify_field() and modify_fields()

Line 266 should use array_merge() because array_merge_recursive() will *append* the value instead of replacing it, which is the intended purpose of modify_field().
Line 287 has a typo fix 'modfy' should be 'modify'.

Sample code to test fix:
```$form_id = 'create_user';
$new_username_label = array('label' => 'FOO');
Formation::modify_field($form_id, 'username', $new_username_label);
echo Formation::form($form_id);
```