function _signup_date_field_form_submit in Signup 6
Same name and namespace in other branches
- 5.2 includes/date.inc \_signup_date_field_form_submit()
- 6.2 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()
1 string reference to '_signup_date_field_form_submit'
- signup_form_content_field_edit_form_alter in includes/
date.inc - Alter the form for configuring CCK date fields on node types.
File
- includes/
date.inc, line 123 - Code to support using CCK date fields for time-based signup functionality.
Code
function _signup_date_field_form_submit($form, &$form_state) {
$type = $form_state['values']['type_name'];
if (empty($form_state['values']['signup_date_field'])) {
variable_del('signup_date_field_' . $type);
}
else {
variable_set('signup_date_field_' . $type, $form_state['values']['signup_date_field']);
}
}