You are here

function _biblio_text_year in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 biblio.module \_biblio_text_year()
  2. 6 biblio.module \_biblio_text_year()
  3. 7.2 biblio.module \_biblio_text_year()
5 calls to _biblio_text_year()
biblio_handler_citation::render in views/biblio_handler_citation.inc
Render the field.
biblio_handler_field::pre_render in views/biblio_handler_field.inc
Run before any fields are rendered.
biblio_load in ./biblio.module
Implements hook_load().
theme_biblio_long in includes/biblio_theme.inc
Theme function for biblio_long.
_get_biblio_filters in includes/biblio.pages.inc

File

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

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;
}