function _biblio_text_year in Bibliography Module 6.2
Same name and namespace in other branches
- 6 biblio.module \_biblio_text_year()
- 7 biblio.module \_biblio_text_year()
- 7.2 biblio.module \_biblio_text_year()
@reutrn mixed
Parameters
mixed $year: A variable representing a year value.
5 calls to _biblio_text_year()
- biblio_handler_citation::render in views/
biblio_handler_citation.inc - biblio_handler_field::pre_render in views/
biblio_handler_field.inc - biblio_load in ./
biblio.module - Implements hook_load().
- theme_biblio_long in includes/
biblio_theme.inc - DEPRECIATED! this was the original output format which is not to flexable it will be removed TODO: remove this function
- _get_biblio_filters in includes/
biblio.pages.inc - Populates the various selection filters with biblio data.
File
- ./
biblio.module, line 1823 - Main file for Drupal module biblio.
Code
function _biblio_text_year($year) {
if ($year == 9998) {
return check_plain(variable_get('biblio_inpress_year_text', t('In Press')));
}
if ($year == 9999) {
return check_plain(variable_get('biblio_no_year_text', t('Submitted')));
}
return $year;
}