From 2be119ca1c687306d774f7a8e8905115f63dcae0 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Wed, 2 May 2018 14:05:14 +1000 Subject: [PATCH] change drupal_render to just render --- booking.variety_form.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/booking.variety_form.inc b/booking.variety_form.inc index 6fb646d..40a2328 100644 --- a/booking.variety_form.inc +++ b/booking.variety_form.inc @@ -137,6 +137,7 @@ function booking_variety_session_callback($form, &$form_state) { ); //re-create the form element for this timeslot + /* $form['variety-sessions'][$fieldname] = array( '#type' => 'select', '#title' => t('Variety Session: ' . $timeslot->booking_variety_time_descrip), @@ -146,9 +147,11 @@ function booking_variety_session_callback($form, &$form_state) { '#suffix' => '', '#default_value' => 1, ); + */ + $form['variety-sessions'][$fieldname]['#options'] = $options; // Tell drupal to update the wrapper for this field - $commands[] = ajax_command_replace('#booking_variety_session_' . $timeslot->tid . 'wrapper', drupal_render($form['variety-sessions'][$fieldname])); + $commands[] = ajax_command_replace('#booking_variety_session_' . $timeslot->tid . 'wrapper', render($form['variety-sessions'][$fieldname])); } $form_state['rebuild'] = TRUE;