function biblio_delete_multiple_keywords in Bibliography Module 6.2
Same name and namespace in other branches
- 6 biblio.keywords.inc \biblio_delete_multiple_keywords()
- 7 includes/biblio.keywords.inc \biblio_delete_multiple_keywords()
- 7.2 includes/biblio.keywords.inc \biblio_delete_multiple_keywords()
Delete multiple keywords 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 (integer) keyword IDs to delete.
Return value
integer The number of keywords deleted.
File
- includes/
biblio.keywords.inc, line 280 - Keywords related functions for Drupal biblio module.
Code
function biblio_delete_multiple_keywords($keywords) {
$count = 0;
foreach ($keywords as $kid) {
$count += biblio_delete_keyword($kid);
}
return $count;
}