function db_transaction


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 db_transaction($name = NULL, array $options = array())
cle7 db_transaction($name = NULL, array $options = array())
elmsmedia7 db_transaction($name = NULL, array $options = array())
icor7 db_transaction($name = NULL, array $options = array())
meedjum_blog7 db_transaction($name = NULL, array $options = array())
mooc7 db_transaction($name = NULL, array $options = array())

Returns a new transaction object for the active database.


string $name: Optional name of the transaction.

array $options: An array of options to control how the transaction operates:

  • target: The database target name.

Return value

DatabaseTransaction A new DatabaseTransaction object for this connection.

Related topics

27 calls to db_transaction()
block_admin_configure_submit in modules/block/
Form submission handler for block_admin_configure().
block_admin_display_form_submit in modules/block/
Form submission handler for block_admin_display_form().
comment_delete_multiple in modules/comment/comment.module
Delete comments and all their replies.
comment_save in modules/comment/comment.module
Accepts a submission of new or changed comment content.
EntityAPIController::delete in sites/all/modules/ulmus/entity/includes/
Implements EntityAPIControllerInterface.

... See full list


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


function db_transaction($name = NULL, array $options = array()) {
  if (empty($options['target'])) {
    $options['target'] = 'default';
  return Database::getConnection($options['target'])->startTransaction($name);



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.