|
|
@ -100,9 +100,9 @@ function reserve_form_reserve_reservation_form_alter(array &$form, FormStateInte |
|
|
|
|
|
|
|
|
|
|
|
// set default Group Name as name of current user |
|
|
|
// set default Group Name as name of current user |
|
|
|
$form['name']['widget'][0]['value']['#required'] = TRUE; |
|
|
|
$form['name']['widget'][0]['value']['#required'] = TRUE; |
|
|
|
$form['name']['widget'][0]['value']['#default_value'] = $form['name']['widget'][0]['value']['#default_value'] ? |
|
|
|
/*$form['name']['widget'][0]['value']['#default_value'] = $form['name']['widget'][0]['value']['#default_value'] ? |
|
|
|
$form['name']['widget'][0]['value']['#default_value'] : |
|
|
|
$form['name']['widget'][0]['value']['#default_value'] : |
|
|
|
\Drupal::currentUser()->getDisplayName(); |
|
|
|
\Drupal::currentUser()->getDisplayName();*/ |
|
|
|
|
|
|
|
|
|
|
|
// set values taken from URL |
|
|
|
// set values taken from URL |
|
|
|
$form['reservation_date']['widget'][0]['value']['#default_value'] = DrupalDateTime::createFromTimestamp(strtotime($yyyymmdd)); |
|
|
|
$form['reservation_date']['widget'][0]['value']['#default_value'] = DrupalDateTime::createFromTimestamp(strtotime($yyyymmdd)); |
|
|
|