You are here

function biblio_delete_multiple_keywords in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 includes/biblio.keywords.inc \biblio_delete_multiple_keywords()
  2. 7 includes/biblio.keywords.inc \biblio_delete_multiple_keywords()
  3. 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 keyword id's to delete

Return value

The number of keywords deleted

File

./biblio.keywords.inc, line 241

Code

function biblio_delete_multiple_keywords($keywords) {
  $count = 0;
  foreach ($keywords as $kid) {
    $count += biblio_delete_keyword($kid);
  }
  return $count;
}