db_delete

  1. drupal
    1. drupal7
Versionen
drupal7 db_delete($table, array $options = array())

Returns a new DeleteQuery object for the active database.

Übergabeparameter

$table The table from which to delete.

$options An array of options to control how the query operates.

Rückgabewert

A new DeleteQuery object for this connection.

Verwandte Themen

▾ 94 functions call db_delete()

actions_delete in includes/actions.inc
Delete a single action from the database.
aggregator_aggregator_remove in modules/aggregator/aggregator.processor.inc
Implementation of hook_aggregator_remove().
aggregator_categorize_items_submit in modules/aggregator/aggregator.pages.inc
Process aggregator_categorize_items() form submissions.
aggregator_expire in modules/aggregator/aggregator.processor.inc
Expire feed items on $feed that are older than aggregator_clear.
aggregator_save_category in modules/aggregator/aggregator.module
Add/edit/delete aggregator categories.
aggregator_save_feed in modules/aggregator/aggregator.module
Add/edit/delete an aggregator feed.
aggregator_save_item in modules/aggregator/aggregator.processor.inc
Add/edit/delete an aggregator item.
book_node_delete in modules/book/book.module
Implementation of hook_node_delete().
book_remove_form_submit in modules/book/book.pages.inc
Confirm form submit function to remove a node from the book.
cache_clear_all in includes/cache.inc
Expire data from the cache. If called without arguments, expirable entries will be cleared from the cache_page and cache_block tables.
cache_get in includes/cache.inc
Return data from the persistent cache. Data may be stored as either plain text or as serialized data. cache_get will automatically return unserialized objects and arrays.
comment_node_delete in modules/comment/comment.module
Implementation of hook_node_delete().
ContactPersonalTestCase::testPersonalContact in modules/contact/contact.test
Test personal contact form.
ContactSitewideTestCase::testSiteWideContact in modules/contact/contact.test
Test configuration options and site-wide contact form.
contact_admin_delete_submit in modules/contact/contact.admin.inc
Process category delete form submission.
DatabaseDeleteTruncateTestCase::testSimpleDelete in modules/simpletest/tests/database_test.test
Confirm that we can delete a single record successfully.
dblog_clear_log_submit in modules/dblog/dblog.admin.inc
Submit callback: clear database with log messages.
dblog_cron in modules/dblog/dblog.module
Implementation of hook_cron().
dblog_user_cancel in modules/dblog/dblog.module
Implementation of hook_user_cancel().
deleteItem in modules/system/system.queue.inc
deleteQueue in modules/system/system.queue.inc
drupal_session_destroy_uid in includes/session.inc
End a specific user's session(s).
field_sql_storage_field_storage_delete in modules/field/modules/field_sql_storage/field_sql_storage.module
Implementation of hook_field_storage_delete().
field_sql_storage_field_storage_delete_revision in modules/field/modules/field_sql_storage/field_sql_storage.module
Implementation of hook_field_storage_delete_revision().
field_sql_storage_field_storage_write in modules/field/modules/field_sql_storage/field_sql_storage.module
Implementation of hook_field_storage_write().
file_delete in includes/file.inc
Delete a file and its database record.
filter_admin_delete_submit in modules/filter/filter.admin.inc
Process filter delete form submission.
HookBootExitTestCase::testHookBootExit in modules/simpletest/tests/bootstrap.test
Test calling of hook_boot() and hook_exit().
hook_delete in modules/node/node.api.php
Respond to node deletion.
hook_file_delete in modules/system/system.api.php
Respond to a file being deleted.
hook_modules_uninstalled in modules/system/system.api.php
Perform necessary actions after modules are uninstalled.
hook_node_delete in modules/node/node.api.php
Act on node deletion.
hook_node_delete_revision in modules/node/node.api.php
A revision of the node is deleted.
hook_taxonomy_term_delete in modules/taxonomy/taxonomy.api.php
Respond to the deletion of taxonomy terms.
hook_user_cancel in modules/user/user.api.php
Act on user account cancellations.
ImportOPMLTestCase::openImportForm in modules/aggregator/aggregator.test
Open OPML import form.
ImportOPMLTestCase::submitImportForm in modules/aggregator/aggregator.test
Submit form with invalid, empty and valid OPML files.
locale_languages_delete_form_submit in includes/locale.inc
Process language deletion submissions.
locale_translate_delete_form_submit in includes/locale.inc
Process string deletion submissions.
locale_translate_edit_form_submit in includes/locale.inc
Process string editing form submissions.
MenuRebuildTestCase::testMenuRebuildByVariable in modules/simpletest/tests/menu.test
Test if the 'menu_rebuild_needed' variable triggers a menu_rebuild() call.
menu_delete_menu_confirm_submit in modules/menu/menu.admin.inc
Delete a custom menu and all links in it.
node_access_rebuild in modules/node/node.module
Rebuild the node access database. This is occasionally needed by modules that make system-wide changes to access levels.
node_access_write_grants in modules/node/node.module
This function will write a list of grants to the database, deleting any pre-existing grants. If a realm is provided, it will only delete grants from that realm, but it will always delete a grant from the 'all' realm. Modules which utilize…
node_cron in modules/node/node.module
Implementation of hook_cron().
node_delete_multiple in modules/node/node.module
Delete multiple nodes.
node_revision_delete_confirm_submit in modules/node/node.pages.inc
node_type_delete in modules/node/node.module
Deletes a node type from the database.
node_user_cancel in modules/node/node.module
Implementation of hook_user_cancel().
openid_association in modules/openid/openid.module
Attempt to create a shared secret with the OpenID Provider.
openid_user_delete_form_submit in modules/openid/openid.pages.inc
path_admin_delete in modules/path/path.module
Post-confirmation; delete an URL alias.
path_set_alias in modules/path/path.module
Set an aliased path for a given Drupal path, preventing duplicates.
poll_cancel in modules/poll/poll.module
Submit callback for poll_cancel_form
poll_delete in modules/poll/poll.module
Implementation of hook_delete().
poll_update in modules/poll/poll.module
Implementation of hook_update().
poll_user_cancel in modules/poll/poll.module
Implementation of hook_user_cancel().
profile_field_delete_submit in modules/profile/profile.admin.inc
Process a field delete form submission.
profile_user_cancel in modules/profile/profile.module
Implementation of hook_user_cancel().
simpletest_clean_results_table in modules/simpletest/simpletest.module
Clear the test result tables.
statistics_cron in modules/statistics/statistics.module
Implementation of hook_cron().
statistics_node_delete in modules/statistics/statistics.module
Implementation of hook_node_delete().
statistics_user_cancel in modules/statistics/statistics.module
Implementation of hook_user_cancel().
system_cron in modules/system/system.module
Implementation of hook_cron().
system_ip_blocking_delete_submit in modules/system/system.admin.inc
Process system_ip_blocking_delete form submissions.
system_theme_data in modules/system/system.module
Collect data about all currently available themes.
taxonomy_node_delete in modules/taxonomy/taxonomy.module
Implementation of hook_node_delete().
taxonomy_node_delete_revision in modules/taxonomy/taxonomy.module
Implementation of hook_node_delete_revision().
taxonomy_node_type in modules/taxonomy/taxonomy.module
Implementation of hook_node_type().
taxonomy_term_delete in modules/taxonomy/taxonomy.module
Delete a term.
taxonomy_term_save in modules/taxonomy/taxonomy.module
Save a term object to the database.
taxonomy_test_taxonomy_term_delete in modules/simpletest/tests/taxonomy_test.module
Implementation of hook_taxonomy_term_delete().
taxonomy_vocabulary_delete in modules/taxonomy/taxonomy.module
Delete a vocabulary.
taxonomy_vocabulary_save in modules/taxonomy/taxonomy.module
Save a vocabulary given a vocabulary object.
upload_file_delete in modules/upload/upload.module
Implementation of hook_file_delete().
upload_node_delete in modules/upload/upload.module
Implementation of hook_node_delete().
upload_node_delete_revision in modules/upload/upload.module
Implementation of hook_node_delete_revision().
upload_save in modules/upload/upload.module
user_admin_perm_submit in modules/user/user.admin.inc
Save permissions selected on the administer permissions page.
user_admin_role_submit in modules/user/user.admin.inc
user_save in modules/user/user.module
Save changes to a user account or add a new user.
user_set_authmaps in modules/user/user.module
Save mappings of which external authentication module(s) authenticated a user. Maps external usernames to user ids in the users table.
variable_del in includes/bootstrap.inc
Unset a persistent variable.
_batch_finished in includes/batch.inc
End the batch processing.
_comment_delete_thread in modules/comment/comment.admin.inc
Perform the actual deletion of a comment and all its replies.
_locale_import_one_string_db in includes/locale.inc
Import one string into the database.
_menu_delete_item in includes/menu.inc
Helper function for menu_link_delete; deletes a single menu link.
_menu_router_save in includes/menu.inc
Helper function to save data from menu_router_build() to the router table.
_registry_parse_file in includes/registry.inc
Parse a file and save its function and class listings.
_registry_rebuild in includes/registry.inc
_sess_destroy_sid in includes/session.inc
Session handler assigned by session_set_save_handler().
_sess_gc in includes/session.inc
Session handler assigned by session_set_save_handler().
_update_cache_clear in modules/update/update.module
Invalidates cached data relating to update status.
_user_cancel in modules/user/user.module
Last batch processing step for cancelling a user account.

Code

includes/database/database.inc, line 1903

<?php
function db_delete($table, array $options = array()) {
  if (empty($options['target']) || $options['target'] == 'slave') {
    $options['target'] = 'default';
  }
  return Database::getConnection($options['target'])->delete($table, $options);
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen