function nodewords_delete_tags in Nodewords: D6 Meta Tags 6
Same name and namespace in other branches
- 6.3 nodewords.module \nodewords_delete_tags()
- 6.2 nodewords.module \nodewords_delete_tags()
Delete tags from table.
5 calls to nodewords_delete_tags()
- nodewords_custom_pages_confirm_delete_submit in ./
nodewords.admin.inc - Submit processor for the confirm-delete page.
- nodewords_nodeapi in ./
nodewords.module - Implements hook_nodeapi().
- nodewords_tags_form_reset in ./
nodewords.admin.inc - Submission function for the meta tags edit page (reset button).
- nodewords_taxonomy in ./
nodewords.module - Implements hook_taxonomy().
- nodewords_user in ./
nodewords.module - Implements hook_user().
File
- ./
nodewords.module, line 741 - Implement an API that other modules can use to implement meta tags.
Code
function nodewords_delete_tags($type, $id) {
db_query("DELETE FROM {nodewords} WHERE type = %d AND id = %d", $type, $id);
if ($type == NODEWORDS_TYPE_PAGE) {
db_query("DELETE FROM {nodewords_custom} WHERE pid = %d", $id);
}
}