function db_update

cis7 database.inc db_update($table, array $options = array())
cle7 database.inc db_update($table, array $options = array())
elmsmedia7 database.inc db_update($table, array $options = array())
icor7 database.inc db_update($table, array $options = array())
meedjum_blog7 database.inc db_update($table, array $options = array())
mooc7 database.inc 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

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

File

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

Code

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