3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Make the movement form a tree.

This commit is contained in:
paul121 2020-06-24 13:49:51 -07:00 committed by Michael Stenta
parent bfbed98499
commit 5580aa9e85

View file

@ -16,6 +16,9 @@ function farm_livestock_move_form($form, &$form_state) {
'#description' => t('Use this form to record the movement of animals to an area. An activity log will be created with standard details filled in. You can also specify before/after observations of the area(s) that the animals are moving to/from.'),
);
// Make the form a tree.
$form['move']['#tree'] = TRUE;
// Define the date format for logs.
$date_format = 'Y-m-d';