db_update
- Versions
- 7
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
A new UpdateQuery object for this connection.
Related topics
- Database abstraction layer
- Allow the use of different database servers using the same code base.
▾ 123 functions call db_update()
- actions_loop_test_install in modules/simpletest/tests/actions_loop_test.install
- Implementation of hook_install().
- aggregator_aggregator_fetch in modules/aggregator/aggregator.fetcher.inc
- Implement hook_aggregator_fetch().
- aggregator_block_save in modules/aggregator/aggregator.module
- Implement hook_block_save().
- aggregator_save_feed in modules/aggregator/aggregator.module
- Add/edit/delete an aggregator feed.
- batch_process in includes/form.inc
- Processes the batch.
- 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
- Implement hook_filter_format_delete().
- block_install in modules/block/block.install
- Implement hook_install().
- block_update_7000 in modules/block/block.install
- Set system.weight to a low value for block module.
- 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_filter_format_delete in modules/comment/comment.module
- Implement hook_filter_format_delete().
- comment_operations in modules/comment/comment.module
- Comment operations. Offer different update operations depending on which comment administration page is being viewed.
- comment_publish_action in modules/comment/comment.module
- Action to publish 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
- Action to unpublish a comment.
- comment_update_7001 in modules/comment/comment.install
- Change comment status from published being 0 to being 1
- comment_user_cancel in modules/comment/comment.module
- Implement 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.
- dblog_user_cancel in modules/dblog/dblog.module
- Implement hook_user_cancel().
- default_install in profiles/default/default.install
- Implement 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
- Save 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
- Mark a field for deletion, including all its instances and all data associated with it.
- field_delete_instance in modules/field/field.crud.inc
- Mark a field instance for deletion, including all data associated with it.
- field_modules_disabled in modules/field/field.module
- Implement hook_modules_disabled().
- field_sql_storage_field_attach_rename_bundle in modules/field/modules/field_sql_storage/field_sql_storage.module
- Implement hook_field_attach_rename_bundle().
- field_sql_storage_field_storage_delete_field in modules/field/modules/field_sql_storage/field_sql_storage.module
- Implement hook_field_storage_delete_field().
- field_sql_storage_field_storage_delete_instance in modules/field/modules/field_sql_storage/field_sql_storage.module
- Implement 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
- Implement hook_install().
- filter_admin_configure_submit in modules/filter/filter.admin.inc
- Form submit handler for text format filter configuration form.
- 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
- Implement hook_install().
- forum_node_update in modules/forum/forum.module
- Implement 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
- 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. For each patch which requires a database change add a new hook_update_N() which will be called by update.php.
- hook_user_cancel in modules/user/user.api.php
- Act on user account cancellations.
- install_finished in ./install.php
- 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 includes/locale.inc
- Process language deletion submissions.
- locale_languages_edit_form_submit in includes/locale.inc
- Process the language editing form submission.
- locale_languages_overview_form_submit in includes/locale.inc
- Process language overview form submissions, updating existing languages.
- locale_translate_edit_form_submit in includes/locale.inc
- Process string editing form submissions.
- lock_acquire in includes/lock.inc
- Acquire (or renew) a lock, but do not block if it fails.
- 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
- Implement 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_user_cancel in modules/node/node.module
- Implement hook_user_cancel().
- poll_cancel in modules/poll/poll.module
- Submit callback for poll_cancel_form().
- poll_cron in modules/poll/poll.module
- Implement hook_cron().
- poll_update in modules/poll/poll.module
- Implement hook_update().
- poll_user_cancel in modules/poll/poll.module
- Implement 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.
- statistics_cron in modules/statistics/statistics.module
- Implement hook_cron().
- statistics_user_cancel in modules/statistics/statistics.module
- Implement hook_user_cancel().
- system_cron in modules/system/system.module
- Implement hook_cron().
- system_install in modules/system/system.install
- Implement hook_install().
- system_rebuild_module_data in modules/system/system.module
- Rebuild, save, and return data about all currently available modules.
- system_status in modules/system/system.admin.inc
- Menu callback: displays the site status report. Can also be used as a pure check.
- system_themes_form_submit in modules/system/system.admin.inc
- Process system_themes_form form submissions.
- 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_7004 in modules/system/system.install
- Remove hardcoded numeric deltas from all blocks in core.
- 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
- Add new blocks to new regions, migrate custom variables to blocks.
- system_update_7023 in modules/system/system.install
- Change the PHP for settings permission.
- 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.
- translation_node_insert in modules/translation/translation.module
- Implement hook_node_insert().
- translation_node_update in modules/translation/translation.module
- Implement 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 anything in the {system} table that is not compatible with the current version of Drupal core.
- upload_save in modules/upload/upload.module
- upload_update_7000 in modules/upload/upload.install
- Migrate upload module files from {files} to {file}.
- 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
- Implement a Drupal action. Blocks the current user.
- user_file_delete in modules/user/user.module
- Implement hook_file_delete().
- 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.
- _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.
- _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 2116
<?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);
}
?>Login or register to post comments 