You are here

function nodewords_delete_tags in Nodewords: D6 Meta Tags 6.2

Same name and namespace in other branches
  1. 6.3 nodewords.module \nodewords_delete_tags()
  2. 6 nodewords.module \nodewords_delete_tags()

Delete tags from table.

6 calls to nodewords_delete_tags()
nodewords_admin_settings_form_reset in nodewords_admin/nodewords_admin.admin.inc
Submission function for the reset button of the settings page.
nodewords_admin_tags_edit_form_reset in nodewords_admin/nodewords_admin.admin.inc
Submission function for the meta tags edit page (reset button).
nodewords_custom_pages_confirm_delete_submit in nodewords_custom_pages/nodewords_custom_pages.admin.inc
nodewords_nodeapi in ./nodewords.module
Implements hook_nodeapi().
nodewords_taxonomy in ./nodewords.module
Implements hook_taxonomy().

... See full list

File

./nodewords.module, line 310
Implement an API that other modules can use to add meta tags.

Code

function nodewords_delete_tags($options = array()) {
  $options += _nodewords_get_default_metatags_type();
  db_query("DELETE FROM {nodewords} WHERE type = %d AND id = %d", $options['type'], $options['id']);
  nodewords_load_all_includes('nodewords.hooks.inc');
  module_invoke_all('nodewords_delete_tags', $options);
}