function db_delete

cis7 database.inc db_delete($table, array $options = array())
cle7 database.inc db_delete($table, array $options = array())
elmsmedia7 database.inc db_delete($table, array $options = array())
icor7 database.inc db_delete($table, array $options = array())
meedjum_blog7 database.inc db_delete($table, array $options = array())
mooc7 database.inc db_delete($table, array $options = array())

Returns a new DeleteQuery object for the active database.

Parameters

$table: The table from which to delete.

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

Return value

DeleteQuery A new DeleteQuery object for this connection.

Related topics

291 calls to db_delete()
accessibility_reporting_report in sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/accessibility_reporting.module
Report callback. Stores posted data to accessibility_reporting table.
accessibility_test_delete_multiple in sites/all/modules/ulmus/accessibility/accessibility.module
Delete multiple accessibility tests.
actions_delete in includes/actions.inc
Deletes a single action from the database.
admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit in sites/all/modules/ulmus/admin_menu/admin_devel/admin_devel.module
Form submit handler to wipe and rebuild all 'module' = 'system' menu links.
admin_menu_update_6001 in sites/all/modules/ulmus/admin_menu/admin_menu.install
Wipe and rebuild so we can switch the icon path to <front>.

... See full list

File

includes/database/database.inc, line 2477
Core systems for the database layer.

Code

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);
}