db_update

Versions
mediamosa-21
db_update($table, array $options = array())

Returns a new UpdateQuery object for the active database.

Parameters

$table The table to update.

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

Return value

UpdateQuery A new UpdateQuery object for this connection.

Related topics

▾ 129 functions call db_update()

actions_loop_test_install in modules/simpletest/tests/actions_loop_test.install
Implements hook_install().
aggregator_block_save in modules/aggregator/aggregator.module
Implements hook_block_save().
aggregator_cron in modules/aggregator/aggregator.module
Implements hook_cron().
aggregator_refresh in modules/aggregator/aggregator.module
Checks a news feed for new items.
aggregator_save_feed in modules/aggregator/aggregator.module
Add/edit/delete an aggregator feed.
block_admin_configure_submit in modules/block/block.admin.inc
block_admin_display_form_submit in modules/block/block.admin.inc
Process main blocks administration form submissions.
block_custom_block_save in modules/block/block.module
Saves a user-created block in the database.
block_filter_format_delete in modules/block/block.module
Implements hook_filter_format_delete().
block_install in modules/block/block.install
Implements hook_install().
block_update_7000 in modules/block/block.install
Set system.weight to a low value for block module.
block_update_7004 in modules/block/block.install
Add new blocks to new regions, migrate custom variables to blocks.
book_update_bid in modules/book/book.module
Update the bid for a page and its children when it is moved to a new book.
comment_publish_action in modules/comment/comment.module
Publishes a comment.
comment_save in modules/comment/comment.module
Accepts a submission of new or changed comment content.
comment_unpublish_action in modules/comment/comment.module
Unpublishes a comment.
comment_update_7001 in modules/comment/comment.install
Change comment status from published being 0 to being 1
comment_update_7013 in modules/comment/comment.install
Migrate data from the comment field to field storage.
comment_user_cancel in modules/comment/comment.module
Implements hook_user_cancel().
contact_category_edit_form_submit in modules/contact/contact.admin.inc
Process the contact category edit page form submission.
contact_update_7001 in modules/contact/contact.install
Rename the administer contact forms permission.
devel_install in sites/all/modules/devel/devel.install
Implements hook_install()
drupal_session_regenerate in includes/session.inc
Called when an anonymous user becomes authenticated or vice-versa.
drupal_set_installed_schema_version in includes/install.inc
Update the installed version information for a module.
drupal_write_record in includes/common.inc
Saves a record to the database based upon the schema.
field_associate_fields in modules/field/field.module
Allows a module to update the database for fields and columns it controls.
field_attach_rename_bundle in modules/field/field.attach.inc
Notify field.module that a bundle was renamed.
field_delete_field in modules/field/field.crud.inc
Marks a field and its instances and data for deletion.
field_delete_instance in modules/field/field.crud.inc
Marks a field instance and its data for deletion.
field_modules_disabled in modules/field/field.module
Implements hook_modules_disabled().
field_sql_storage_field_attach_rename_bundle in modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_attach_rename_bundle().
field_sql_storage_field_storage_delete_field in modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_delete_field().
field_sql_storage_field_storage_delete_instance in modules/field/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_storage_delete_instance().
field_test_entity_save in modules/field/tests/field_test.entity.inc
Saves a test_entity.
field_test_install in modules/field/tests/field_test.install
Implements hook_install().
filter_admin_overview_submit in modules/filter/filter.admin.inc
filter_update_7003 in modules/filter/filter.install
Remove hardcoded numeric deltas from all filters in core.
filter_update_7004 in modules/filter/filter.install
Move filter settings storage into {filter} table.
filter_update_7005 in modules/filter/filter.install
Integrate text formats with the user permissions system.
forum_install in modules/forum/forum.install
Implements hook_install().
forum_node_update in modules/forum/forum.module
Implements hook_node_update().
hook_exit in modules/system/system.api.php
Perform cleanup tasks.
hook_filter_format_delete in modules/filter/filter.api.php
Perform actions when a text format has been deleted.
hook_menu_link_update in modules/menu/menu.api.php
Inform modules that a menu link has been updated.
hook_node_update in modules/node/node.api.php
Respond to updates to a node.
hook_search_reset in modules/search/search.api.php
Take action when the search index is going to be rebuilt.
hook_update in modules/node/node.api.php
Respond to updates to a node.
hook_update_N in modules/system/system.api.php
Perform a single update.
hook_user_cancel in modules/user/user.api.php
Act on user account cancellations.
install_finished in includes/install.core.inc
Installation task; perform final steps and display a 'finished' page.
locale in modules/locale/locale.module
Provides interface translation services.
locale_languages_delete_form_submit in modules/locale/locale.admin.inc
Process language deletion submissions.
locale_languages_edit_form_submit in modules/locale/locale.admin.inc
Process the language editing form submission.
locale_languages_overview_form_submit in modules/locale/locale.admin.inc
Process language overview form submissions, updating existing languages.
locale_translate_edit_form_submit in modules/locale/locale.admin.inc
Process string editing form submissions.
lock_acquire in includes/lock.inc
Acquire (or renew) a lock, but do not block if it fails.
mediamosa_maintenance_browse_errorcode_edit_form_submit in sites/all/modules/mediamosa/maintenance/browse/mediamosa_maintenance_browse_errorcode.inc
Submit the errorcode update form.
mediamosa_profile_install in profiles/mediamosa_profile/mediamosa_profile.install
Implement hook_install().
mediamosa_webservice_form_submit in sites/all/modules/mediamosa/modules/webservice/mediamosa_webservice.module
Submit the form.
menu_link_save in includes/menu.inc
Save a menu link.
module_disable in includes/module.inc
Disable a given set of modules.
module_enable in includes/module.inc
Enable a given list of modules.
node_save in modules/node/node.module
Save changes to a node or add a new node.
node_search_reset in modules/node/node.module
Implements hook_search_reset().
node_type_save in modules/node/node.module
Saves a node type to the database.
node_type_update_nodes in modules/node/node.module
Updates all nodes of one type to be of another type.
node_update_7000 in modules/node/node.install
Fix node type 'module' attribute to avoid name-space conflicts.
node_update_7006 in modules/node/node.install
Convert body and teaser from node properties to fields, and migrate status/comment/promote and sticky columns to the {node_revision} table.
node_update_7009 in modules/node/node.install
Convert node languages from the empty string to LANGUAGE_NONE.
node_user_cancel in modules/node/node.module
Implements hook_user_cancel().
performance_log_summary_db in sites/all/modules/devel/performance/performance.module
poll_cancel in modules/poll/poll.module
Submit callback for poll_cancel_form().
poll_cron in modules/poll/poll.module
Implements hook_cron().
poll_update in modules/poll/poll.module
Implements hook_update().
poll_user_cancel in modules/poll/poll.module
Implements hook_user_cancel().
poll_vote in modules/poll/poll.module
Submit handler for processing a vote.
profile_admin_overview_submit in modules/profile/profile.admin.inc
Submit handler to update changed profile field weights and categories.
profile_field_form_submit in modules/profile/profile.admin.inc
Process profile_field_form submissions.
search_index in modules/search/search.module
Update the full-text search index for a particular item.
search_touch_node in modules/search/search.module
Change a node's changed timestamp to 'now' to force reindexing.
standard_install in profiles/standard/standard.install
Implements hook_install().
statistics_cron in modules/statistics/statistics.module
Implements hook_cron().
statistics_user_cancel in modules/statistics/statistics.module
Implements hook_user_cancel().
system_cron in modules/system/system.module
Implements hook_cron().
system_install in modules/system/system.install
Implements hook_install().
system_status in modules/system/system.admin.inc
Menu callback: displays the site status report. Can also be used as a pure check.
system_update_6051 in modules/system/system.install
Create a signature_format column.
system_update_7000 in modules/system/system.install
Rename blog and forum permissions to be consistent with other content types.
system_update_7009 in modules/system/system.install
Rename the variables for primary and secondary links.
system_update_7015 in modules/system/system.install
Change the user logout path.
system_update_7021 in modules/system/system.install
Change the PHP for settings permission.
system_update_7046 in modules/system/system.install
Switch from the Minnelli theme if it is the default or admin theme.
system_update_7048 in modules/system/system.install
Convert path languages from the empty string to LANGUAGE_NONE.
system_update_files_database in modules/system/system.module
Updates the records in the system table based on the files array.
taxonomy_overview_terms_submit in modules/taxonomy/taxonomy.admin.inc
Submit handler for terms overview form.
taxonomy_update_7002 in modules/taxonomy/taxonomy.install
Add {vocabulary}.machine_name column.
taxonomy_vocabulary_confirm_reset_alphabetical_submit in modules/taxonomy/taxonomy.admin.inc
Submit handler to reset a vocabulary to alphabetical order after confirmation.
theme_disable in includes/theme.inc
Disable a given list of themes.
theme_enable in includes/theme.inc
Enable a given list of themes.
translation_node_insert in modules/translation/translation.module
Implements hook_node_insert().
translation_node_update in modules/translation/translation.module
Implements hook_node_update().
translation_remove_from_set in modules/translation/translation.module
Remove a node from its translation set (if any) and update the set accordingly.
trigger_update_7000 in modules/trigger/trigger.install
Adds operation names to the hook names and drops the "op" field.
update_fix_compatibility in includes/update.inc
Disable any items in the {system} table that are not core compatible.
update_fix_d7_block_deltas in includes/update.inc
A helper function that modules can use to assist with the transformation from numeric block deltas to string block deltas during the 6.x -> 7.x upgrade.
url_alter_test_install in modules/simpletest/tests/url_alter_test.install
Impelement hook_install().
user_authenticate in modules/user/user.module
Try to validate the user's login credentials locally.
user_block_user_action in modules/user/user.module
Blocks the current user.
user_file_delete in modules/user/user.module
Implements hook_file_delete().
user_install in modules/user/user.install
Implements hook_install().
user_login_finalize in modules/user/user.module
Finalize the login process. Must be called when logging in a user.
user_update_7000 in modules/user/user.install
Increase the length of the password field to accommodate better hashes.
user_update_7002 in modules/user/user.install
Convert user time zones from time zone offsets to time zone names.
user_update_7004 in modules/user/user.install
Add the user's pictures to the {file} table and make them managed files.
user_update_7006 in modules/user/user.install
Add module data to {role_permission}.
_batch_shutdown in includes/batch.inc
Shutdown function; store the current batch data for the next request.
_comment_update_node_statistics in modules/comment/comment.module
Updates the comment statistics for a given node. This should be called any time a comment is added, deleted, or updated.
_drupal_session_write in includes/session.inc
Session handler assigned by session_set_save_handler().
_forum_update_forum_index in modules/forum/forum.module
Updates the taxonomy index for a given node.
_locale_import_one_string in includes/locale.inc
Imports a string into the database
_locale_import_one_string_db in includes/locale.inc
Import one string into the database.
_locale_parse_js_file in includes/locale.inc
Parses a JavaScript file, extracts strings wrapped in Drupal.t() and Drupal.formatPlural() and inserts them into the database.
_locale_rebuild_js in includes/locale.inc
(Re-)Creates the JavaScript translation file for a language.
_menu_link_move_children in includes/menu.inc
Update the children of a menu link that's being moved.
_menu_navigation_links_rebuild in includes/menu.inc
Helper function to build menu links for the items in the menu router.
_menu_update_parental_status in includes/menu.inc
Check and update the has_children status for the parent of a link.
_system_update_bootstrap_status in modules/system/system.module
Refresh bootstrap column in the system table.
_tracker_remove in modules/tracker/tracker.module
Clean up indexed data when nodes or comments are removed.
_user_cancel in modules/user/user.module
Last batch processing step for cancelling a user account.

Code

includes/database/database.inc, line 2261

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