function _biblio_numeric_year in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 biblio.module \_biblio_numeric_year()
- 6 biblio.module \_biblio_numeric_year()
- 7 biblio.module \_biblio_numeric_year()
Gets the numeric year values associated with "In Press"/"Submitted
Parameters
mixed $year:
Return value
int
1 call to _biblio_numeric_year()
- _biblio_prepare_submit in ./
biblio.module - Prepare a biblio for submit to database. Contains code common to insert and update.
File
- ./
biblio.module, line 1648
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;
}
return 0;
}
else {
return $year;
}
}