function _biblio_numeric_year in Bibliography Module 6
Same name and namespace in other branches
- 6.2 biblio.module \_biblio_numeric_year()
- 7 biblio.module \_biblio_numeric_year()
- 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 1653
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;
}
}