function _signup_date_field_form_submit in Signup 5.2
Same name and namespace in other branches
- 6.2 includes/date.inc \_signup_date_field_form_submit()
- 6 includes/date.inc \_signup_date_field_form_submit()
- 7 includes/date.inc \_signup_date_field_form_submit()
Custom submit handler for the CCK date field editing form.
See also
_signup_date_field_form_alter()
File
- includes/
date.inc, line 125 - Shared code required for any site using CCK date fields, regardless of the version of date in use.
Code
function _signup_date_field_form_submit($form_id, $form_values) {
$type = $form_values['type_name'];
if (empty($form_values['signup_date_field'])) {
variable_del('signup_date_field_' . $type);
}
else {
variable_set('signup_date_field_' . $type, $form_values['signup_date_field']);
}
}