You are here

function _period_if_needed in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 styles/biblio_style_mla.inc \_period_if_needed()
  2. 6 biblio_style_mla.inc \_period_if_needed()
  3. 7 styles/biblio_style_mla.inc \_period_if_needed()
1 call to _period_if_needed()
biblio_style_mla in styles/biblio_style_mla.inc
Apply a bibliographic style to the node

File

styles/biblio_style_mla.inc, line 505

Code

function _period_if_needed(&$output) {
  if (!preg_match("/[?!.][ \"" . '<\\/i>' . "]*\$/", $output)) {
    $output .= ".";
  }
}