You are here

function biblio_count_orphan_authors in Bibliography Module 7.2

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

File

includes/biblio.contributors.inc, line 162

Code

function biblio_count_orphan_authors() {
  return db_query('SELECT COUNT(*) FROM {biblio_contributor_data} bcd WHERE bcd.cid NOT IN (SELECT DISTINCT(bc.cid) FROM {biblio_contributor} bc )')
    ->fetchField();
}