You are here

function event_extra_setting_form_submit in Event 5.2

Special submit handler for the site timezone form.

File

./event.module, line 2727

Code

function event_extra_setting_form_submit($form_id, &$form_values) {
  $values = explode('|', $form_values['date_default_timezone']);
  variable_set('date_default_timezone', $values[1]);
  variable_set('date_default_timezone_id', $values[0]);
}