function biblio_delete_multiple_keywords in Bibliography Module 7
Same name and namespace in other branches
- 6.2 includes/biblio.keywords.inc \biblio_delete_multiple_keywords()
- 6 biblio.keywords.inc \biblio_delete_multiple_keywords()
- 7.2 includes/biblio.keywords.inc \biblio_delete_multiple_keywords()
Delete multiple keywords.
Removes from both the biblio_keyword and biblio_keyword_data tables This will remove the keywords referenced by the supplied ID's from ALL nodes which reference them.
Parameters
array $keywords: An array of keyword id's to delete.
Return value
The number of keywords deleted
File
- includes/
biblio.keywords.inc, line 393 - Contains all keyword related functions.
Code
function biblio_delete_multiple_keywords($keywords) {
$count = 0;
foreach ($keywords as $kid) {
$count += biblio_delete_keyword($kid);
}
return $count;
}