diff --git a/booking.emails_admin.inc b/booking.emails_admin.inc index 01db90f..535625d 100644 --- a/booking.emails_admin.inc +++ b/booking.emails_admin.inc @@ -305,6 +305,24 @@ function booking_manual_email_form($form, &$form_state, $input_option = "") drupal_get_path('module', 'booking') . '/booking.css', ); + //@todo + /* + create hidden form element that we will populate with JSON data via ajax + create select element defining the pre-selections available + create submit button that calls ajax to update hidden form element, then calls ajax to check the checkboxes based on the hidden form element + + info on turning JSON data back to array + http://stackoverflow.com/questions/29076219/javascript-storing-array-of-objects-in-hidden-field + + ajax references: + http://www.maged.me/blog/drupal-7-execute-javascript-code-after-ajax-call + https://www.drupal.org/node/1028410 + https://www.drupal.org/node/2046693 + + jquery to check the checkboxes: + http://jsfiddle.net/nanoquantumtech/dnhwz/ + */ + $form['email-type'] = array( '#type' => 'select', '#title' => t('Email Type'),