function biblio_delete_keywords in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 includes/biblio.keywords.inc \biblio_delete_keywords()
- 6 biblio.keywords.inc \biblio_delete_keywords()
- 7 includes/biblio.keywords.inc \biblio_delete_keywords()
Delete all keywords references from a given node, but the actual keywords remain in the biblio_keyword_data table Also remove orphan keywords if this option is enabled. Orphan keywords are keywords which remain in the biblio_keyword_data table but are not refferenced by any nodes through the biblio_keyword table.
Parameters
$node:
Return value
The number of links removed
1 call to biblio_delete_keywords()
File
- includes/
biblio.keywords.inc, line 276
Code
function biblio_delete_keywords($bid) {
$count = db_delete('biblio_keyword')
->condition('bid', $bid)
->execute();
return $count;
}