You are here

function biblio_save_keyword in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 includes/biblio.keywords.inc \biblio_save_keyword()
  2. 7 includes/biblio.keywords.inc \biblio_save_keyword()
  3. 7.2 includes/biblio.keywords.inc \biblio_save_keyword()

Parameters

$word:

1 call to biblio_save_keyword()
biblio_insert_keywords in ./biblio.keywords.inc

File

./biblio.keywords.inc, line 202

Code

function biblio_save_keyword(&$keyword) {
  if (!empty($keyword['kid']) && $keyword['word']) {
    drupal_write_record('biblio_keyword_data', $keyword, 'kid');
    $status = SAVED_UPDATED;
  }
  else {
    drupal_write_record('biblio_keyword_data', $keyword);
    $status = SAVED_NEW;
  }
  return $status;
}