You are here

function biblio_count_orphan_authors in Bibliography Module 6.2

Same name and namespace in other branches
  1. 6 biblio.contributors.inc \biblio_count_orphan_authors()
  2. 7 includes/biblio.contributors.inc \biblio_count_orphan_authors()
  3. 7.2 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 267
Functions related to contributors in Drupal biblio module.

Code

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