diff --git a/modules/farm/farm_crop/farm_crop.farm_quick.inc b/modules/farm/farm_crop/farm_crop.farm_quick.inc new file mode 100644 index 000000000..0971f53b6 --- /dev/null +++ b/modules/farm/farm_crop/farm_crop.farm_quick.inc @@ -0,0 +1,19 @@ + array( + 'label' => t('Planting'), + 'permission' => 'create planting farm assets', + 'form' => 'farm_crop_planting_quick_form', + 'file' => 'farm_crop.farm_quick.planting.inc', + ), + ); +} diff --git a/modules/farm/farm_crop/farm_crop.farm_quick.planting.inc b/modules/farm/farm_crop/farm_crop.farm_quick.planting.inc new file mode 100644 index 000000000..452aa3fde --- /dev/null +++ b/modules/farm/farm_crop/farm_crop.farm_quick.planting.inc @@ -0,0 +1,43 @@ + 'fieldset', + '#title' => t('Record a planting'), + '#description' => t('Use this form to record a planting, along with optional logs associated with it.'), + '#tree' => TRUE, + ); + + // Submit button. + $form['planting']['submit'] = array( + '#type' => 'submit', + '#value' => t('Create planting'), + ); + + // Return the form. + return $form; +} + +/** + * Planting quick form validate. + */ +function farm_crop_planting_quick_form_validate($form, &$form_state) { + +} + +/** + * Planting quick form submit. + */ +function farm_crop_planting_quick_form_submit($form, &$form_state) { + +}