Commit 26687d5d authored by Igor Biki's avatar Igor Biki
Browse files

Merge branch 'feature/ISTWCMS-4885-lkmorlan-location-lookup-menu' into '1.0.x'

ISTWCMS-4885: Add locations pre-fill menu to event edit and clone pages

See merge request !34
parents 58ff4c88 45fb1308
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment