You are here

function clock_edit_form_submit in Clock 7.2

Form submission handler for clock_edit_form().

See also

clock_edit_form()

File

./clock.admin.inc, line 210
Page generation functions for the administrative pages.

Code

function clock_edit_form_submit($form, &$form_state) {
  $cid = $form_state['values']['cid'];
  $old_clock = clock_info($cid);
  $clock = clock_get_clock_from_form_values($form_state['values']);
  $clock->weight = $old_clock->weight;
  clock_update($cid, $clock);
  $form_state['redirect'] = 'admin/structure/block/manage/clock/clock/configure';
}