function _biblio_numeric_year in Bibliography Module 6.2
Same name and namespace in other branches
- 6 biblio.module \_biblio_numeric_year()
- 7 biblio.module \_biblio_numeric_year()
- 7.2 biblio.module \_biblio_numeric_year()
Parameters
mixed $year: A variable representing a year or string like 'In Press' or ;Submitted'.
Return value
mixed
1 call to _biblio_numeric_year()
- _biblio_prepare_submit in ./
biblio.module - Prepares a biblio node for submit to database.
File
- ./
biblio.module, line 1804 - Main file for Drupal module biblio.
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;
}
}