You are here

function biblio_delete_keywords in Bibliography Module 6.2

Same name and namespace in other branches
  1. 6 biblio.keywords.inc \biblio_delete_keywords()
  2. 7 includes/biblio.keywords.inc \biblio_delete_keywords()
  3. 7.2 includes/biblio.keywords.inc \biblio_delete_keywords()

Parameters

object $node:

Return value

integer

2 calls to biblio_delete_keywords()
BiblioKeywordUnitTest::testBiblioUpdateKeywords in tests/keyword.test
biblio_delete in ./biblio.module
Implements hook_delete().

File

includes/biblio.keywords.inc, line 60
Keywords related functions for Drupal biblio module.

Code

function biblio_delete_keywords($node) {
  db_query('DELETE FROM {biblio_keyword} WHERE nid = %d', $node->nid);
  $count = db_affected_rows();
  return $count;
}