You are here

function quotes_bios_submit in Quotes 5

Same name and namespace in other branches
  1. 6 quotes.admin.inc \quotes_bios_submit()
  2. 7 quotes.admin.inc \quotes_bios_submit()

File

./quotes.module, line 1777

Code

function quotes_bios_submit($form_id, $form_values) {

  //watchdog('quotes', 'aid = '. $form_values['aid'] .', bio = '. $form_values['bio'] .', author = '. $form_values['author'] .'.');
  if ($form_values['op'] == 'Update') {
    $vals = array(
      $form_values['bio'],
      $form_values['aid'],
    );
    $upd = db_query("UPDATE {quotes_authors} SET bio='%s' WHERE aid=%d", $vals);
    return BIOS_PATH;
  }
  else {
    return BIOS_PATH . '/' . $form_values['author'];
  }
}