Skip to content
Snippets Groups Projects
Commit c411b7cc authored by Owen Bush's avatar Owen Bush Committed by Owen Bush
Browse files

Issue #3086191 by owenbush, the_glitch: Include and Exclude date fields wont...

Issue #3086191 by owenbush, the_glitch: Include and Exclude date fields wont go back inside their tabs
parent a3b4dc7c
No related branches found
No related tags found
No related merge requests found
...@@ -304,31 +304,6 @@ function recurring_events_form_content_moderation_entity_moderation_form_alter(& ...@@ -304,31 +304,6 @@ function recurring_events_form_content_moderation_entity_moderation_form_alter(&
} }
} }
/**
* Implements hook_form_alter().
*/
function recurring_events_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if ($form_id == 'eventseries_add_form' || $form_id == 'eventseries_edit_form') {
$form['excluded_dates_wrapper'] = [
'#type' => 'details',
'#open' => FALSE,
'#title' => t('Excluded Dates'),
'#weight' => $form['excluded_dates']['#weight'],
'excluded_dates' => $form['excluded_dates'],
];
unset($form['excluded_dates']);
$form['included_dates_wrapper'] = [
'#type' => 'details',
'#open' => FALSE,
'#title' => t('Included Dates'),
'#weight' => $form['included_dates']['#weight'],
'included_dates' => $form['included_dates'],
];
unset($form['included_dates']);
}
}
/** /**
* Implements hook_recurring_events_event_instances_pre_create_alter(). * Implements hook_recurring_events_event_instances_pre_create_alter().
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment