You are here

function _biblio_text_year in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 biblio.module \_biblio_text_year()
  2. 6 biblio.module \_biblio_text_year()
  3. 7 biblio.module \_biblio_text_year()

Gets the string values (in press/submitted) of the years 9999 and 9998

Parameters

int $year:

Return value

string The associated year string

6 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_old in ./biblio.module
Implementation of hook_load().
biblio_plugin_row_citation::render in views/biblio_plugin_row_citation.inc
Render a row object. This usually passes through to a theme template of some form, but not always.
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

... See full list

File

./biblio.module, line 1665

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