You are here

function biblio_get_orphan_authors in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 includes/biblio.contributors.inc \biblio_get_orphan_authors()
  2. 6 biblio.contributors.inc \biblio_get_orphan_authors()
  3. 7 includes/biblio.contributors.inc \biblio_get_orphan_authors()
1 call to biblio_get_orphan_authors()
BiblioContributorUnitTest::testBiblioDeleteOrphanAuthors in tests/contributor.test

File

includes/biblio.contributors.inc, line 166

Code

function biblio_get_orphan_authors() {
  $authors = array();
  $result = db_query('SELECT bcd.* FROM {biblio_contributor_data} bcd WHERE bcd.cid NOT IN (SELECT DISTINCT(bc.cid) FROM {biblio_contributor} bc )');
  foreach ($result as $author) {
    $authors[] = $author;
  }
  return $authors;
}