function clock_add_form_submit in Clock 7.2
Form submission handler for clock_add_form().
See also
File
- ./
clock.admin.inc, line 183 - Page generation functions for the administrative pages.
Code
function clock_add_form_submit($form, &$form_state) {
$clock = clock_get_clock_from_form_values($form_state['values']);
$clock->weight = clock_get_weight();
clock_add($clock);
$form_state['redirect'] = 'admin/structure/block/manage/clock/clock/configure';
}