function spaces_context_form_feature_submit in Spaces 5
Submit handler for spaces context_ui form alterations.
File
- ./
spaces_ui.module, line 105
Code
function spaces_context_form_feature_submit($form_id, $form_values) {
db_query('DELETE FROM {spaces_features_ui} WHERE feature = "%s"', $form_values['value']);
db_query('INSERT INTO {spaces_features_ui} (feature, label, description) VALUES ("%s", "%s", "%s")', $form_values['value'], $form_values['feature']['label'], $form_values['feature']['description']);
}