function customfilter_set_edit_submit in Custom filter 5
Submit the modified filter set.
File
- ./
customfilter.module, line 501
Code
function customfilter_set_edit_submit($form_id, $form_values) {
switch ($form_values['operation']) {
case 'edit':
db_query("UPDATE {customfilter_set}\n SET name = '%s', cache = %d, description = '%s', shorttips = '%s', longtips = '%s'\n WHERE sid = %d", $form_values['name'], $form_values['cache'], $form_values['description'], $form_values['shorttips'], $form_values['longtips'], $form_values['sid']);
break;
case 'add':
$nextid = db_next_id('{customfilter_set}_sid');
db_query("INSERT INTO {customfilter_set} (sid, name, cache, description, shorttips, longtips) VALUES (%d, '%s', %d, '%s', '%s', '%s');", $nextid, $form_values['name'], $form_values['cache'], $form_values['description'], $form_values['shorttips'], $form_values['longtips']);
break;
}
return 'admin/settings/customfilter';
}