function biblio_get_orphan_authors in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 includes/biblio.contributors.inc \biblio_get_orphan_authors()
- 6 biblio.contributors.inc \biblio_get_orphan_authors()
- 7 includes/biblio.contributors.inc \biblio_get_orphan_authors()
1 call to biblio_get_orphan_authors()
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;
}