You are here

public function Creators::getCreatorByName in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/bibtexParse/PARSECREATORS.php \Creators::getCreatorByName()
  2. 6 bibtexParse/PARSECREATORS.php \Creators::getCreatorByName()
  3. 7.3 plugins/biblio_style/bibtex/PARSECREATORS.php \Creators::getCreatorByName()
  4. 7.2 modules/bibtexParse/PARSECREATORS.php \Creators::getCreatorByName()

File

modules/bibtexParse/PARSECREATORS.php, line 44
Classes Creators and PARSECREATORS.

Class

Creators

Code

public function getCreatorByName($name) {

  // [[:<:]], [[:>:]] These stand for word boundaries; see biblio.pages.inc.
  $result = db_query('SELECT *
                    FROM {biblio_contributor_data}
                    WHERE lastname RLIKE :lastname', array(
    'lastname' => '[[:<:]]' . preg_quote($name) . '[[:>:]]',
  ));
}