You are here

function _biblio_numeric_year in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 biblio.module \_biblio_numeric_year()
  2. 6 biblio.module \_biblio_numeric_year()
  3. 7.2 biblio.module \_biblio_numeric_year()
1 call to _biblio_numeric_year()
_biblio_prepare_submit in ./biblio.module
Prepare a node for submit to database. Contains code common to insert and update.

File

./biblio.module, line 1693
Bibliography Module for Drupal.

Code

function _biblio_numeric_year($year) {
  if (!is_numeric($year)) {
    if (drupal_strtoupper($year) == drupal_strtoupper(t("In Press"))) {
      return 9998;
    }
    if (drupal_strtoupper($year) == drupal_strtoupper(t("Submitted"))) {
      return 9999;
    }
  }
  else {
    return $year;
  }
}