You are here

function biblio_submit in Bibliography Module 5

File

./biblio.module, line 1558

Code

function biblio_submit(&$node) {
  if (!is_numeric($node->biblio_year)) {
    if (drupal_strtoupper($node->biblio_year) == drupal_strtoupper(t("In Press"))) {
      $node->biblio_year = 9998;
    }
    if (drupal_strtoupper($node->biblio_year) == drupal_strtoupper(t("Submitted"))) {
      $node->biblio_year = 9999;
    }
  }
  if (variable_get('biblio_keyword_freetagging', 0) && variable_get('biblio_freetagging_vocab', 0)) {
    $vid = variable_get('biblio_freetagging_vocab', 0);
    $node->taxonomy['tags'][$vid] = $node->biblio_keywords;
  }
}