function _conditional_fields_admin_submit in Conditional Fields 5
Same name and namespace in other branches
- 6.2 conditional_fields.module \_conditional_fields_admin_submit()
- 6 conditional_fields.module \_conditional_fields_admin_submit()
File
- ./
conditional_fields.module, line 113
Code
function _conditional_fields_admin_submit($form_id, $form_values) {
if ($form_values['reset'] == 1) {
conditional_fields_node_type_delete($form_values['type']);
$message = t(' All configured conditional fields have been deleted.');
}
variable_set('c_fields_js_' . $form_values['type'], $form_values['js']);
variable_set('c_fields_view_' . $form_values['type'], $form_values['orphaned_view']);
variable_set('c_fields_edit_' . $form_values['type'], $form_values['orphaned_edit']);
variable_set('c_fields_show_all_' . $form_values['type'], $form_values['show_all']);
drupal_set_message(t('Conditional fields options for this content type saved.') . $message);
}