You are here

function opigno_calendar_event_form_submit_handler in Opigno calendar 3.x

Same name and namespace in other branches
  1. 8 opigno_calendar.module \opigno_calendar_event_form_submit_handler()

Submit callback used in opigno_calendar_form_alter().

See also

opigno_calendar_form_alter()

1 string reference to 'opigno_calendar_event_form_submit_handler'
opigno_calendar_form_alter in ./opigno_calendar.module
Implements hook_form_alter().

File

./opigno_calendar.module, line 244
Contains opigno_calendar.module.

Code

function opigno_calendar_event_form_submit_handler(&$form, FormStateInterface $form_state) {

  // Set redirect to calendar page.
  $form_state
    ->setRedirect('view.opigno_calendar.page_month');
}