function quotes_bios_submit in Quotes 6
Same name and namespace in other branches
- 5 quotes.module \quotes_bios_submit()
- 7 quotes.admin.inc \quotes_bios_submit()
File
- ./
quotes.admin.inc, line 475 - The quotes module allows users to maintain a list of quotes that can be displayed in any number of administrator-defined quote blocks.
Code
function quotes_bios_submit($form, &$form_state) {
if ($form_state['values']['op'] == 'Update') {
$vals = array(
$form_state['values']['bio'],
$form_state['values']['aid'],
);
$upd = db_query("UPDATE {quotes_authors} SET bio='%s' WHERE aid=%d", $vals);
$form_state['redirect'] = BIOS_PATH;
}
else {
$form_state['redirect'] = BIOS_PATH . '/' . $form_state['values']['author'];
}
}