diff --git a/uw_ct_event.module b/uw_ct_event.module index 2c2384653141cdaaf2ae3bdb37d9f5a60ffc9c69..36ced5c8ac89877b4a86aa96716b825ab38aa46b 100644 --- a/uw_ct_event.module +++ b/uw_ct_event.module @@ -226,3 +226,15 @@ function uw_ct_event_form_node_uw_ct_event_form_alter(array &$form, FormStateInt $form['#attached']['library'][] = 'uw_ct_event/location_autofill'; $form['#attached']['drupalSettings']['uwCtEvent'] = _uw_ct_event_load_locations(); } + +/** + * Implements hook_form_alter(). + */ +function uw_ct_event_form_alter(array &$form, FormStateInterface $form_state, string $form_id): void { + switch ($form_id) { + case 'node_uw_ct_event_edit_form': + case 'node_uw_ct_event_quick_node_clone_form': + uw_ct_event_form_node_uw_ct_event_form_alter($form, $form_state, $form_id); + break; + } +}