function biblio_delete_keyword in Bibliography Module 6
Same name and namespace in other branches
- 6.2 includes/biblio.keywords.inc \biblio_delete_keyword()
- 7 includes/biblio.keywords.inc \biblio_delete_keyword()
- 7.2 includes/biblio.keywords.inc \biblio_delete_keyword()
Delete a keyword from both the biblio_keyword and biblio_keyword_data tables This will remove the keyword referenced by the supplied ID from ALL nodes which reference them.
Parameters
$keyword_id: The keyword id to delete
Return value
The number of keywords deleted (should always be one)
2 calls to biblio_delete_keyword()
- biblio_admin_keyword_delete_confirm_submit in ./
biblio.admin.inc - biblio_delete_multiple_keywords in ./
biblio.keywords.inc - 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.
File
- ./
biblio.keywords.inc, line 257
Code
function biblio_delete_keyword($keyword_id) {
db_query('DELETE FROM {biblio_keyword} WHERE kid = %d', $keyword_id);
db_query('DELETE FROM {biblio_keyword_data} WHERE kid = %d', $keyword_id);
return db_affected_rows();
}