You are here

function event_extra_user_form_submit in Event 5.2

Special submit handler for the user timezone form.

File

./event.module, line 2736

Code

function event_extra_user_form_submit($form_id, &$form_values) {
  $values = explode('|', $form_values['timezone']);
  db_query('UPDATE {users} SET timezone = %d, timezone_id = %d WHERE uid = %d', $values[1], $values[0], arg(1));
}