Add description to photo fields that explains how to attach multiple photos.

This commit is contained in:
Michael Stenta 2020-07-15 12:23:14 -04:00
parent 61d16ab2c9
commit f4ecb23098
1 changed files with 2 additions and 0 deletions

View File

@ -349,6 +349,7 @@ function farm_livestock_move_form($form, &$form_state) {
$form['move']['observations']['post']['photos'] = array(
'#type' => 'managed_file',
'#title' => t('Photos'),
'#description' => t('Optionally attach a photo to this observation log. If multiple photos need to be attached, edit the log that is created by this form.'),
'#name' => 'files[]',
'#progress_indicator' => 'bar',
'#upload_validators' => array(
@ -380,6 +381,7 @@ function farm_livestock_move_form($form, &$form_state) {
$form['move']['observations']['pre']['photos'] = array(
'#type' => 'managed_file',
'#title' => t('Photos'),
'#description' => t('Optionally attach a photo to this observation log. If multiple photos need to be attached, edit the log that is created by this form.'),
'#name' => 'files[]',
'#progress_indicator' => 'bar',
'#upload_validators' => array(