function db_update

cis7 db_update($table, array $options = array())
cle7 db_update($table, array $options = array())
elmsmedia7 db_update($table, array $options = array())
icor7 db_update($table, array $options = array())
meedjum_blog7 db_update($table, array $options = array())
mooc7 db_update($table, array $options = array())

Returns a new UpdateQuery object for the active database.


$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

245 calls to db_update()
AccessibilityTestController::save in sites/all/modules/ulmus/accessibility/accessibility.module
actions_loop_test_install in modules/simpletest/tests/actions_loop_test.install
Implements hook_install().
admin_menu_install in sites/all/modules/ulmus/admin_menu/admin_menu.install
Implements hook_install().
admin_menu_toolbar_install in sites/all/modules/ulmus/admin_menu/admin_menu_toolbar/admin_menu_toolbar.install
Implements hook_install().
admin_menu_toolbar_update_6300 in sites/all/modules/ulmus/admin_menu/admin_menu_toolbar/admin_menu_toolbar.install
Set module weight to a value higher than admin_menu.

... See full list


includes/database/, line 2459
Core systems for the database layer.


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