Project

General

Profile

Revision 389fb945

Added by Assos Assos over 4 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/webform/includes/webform.conditionals.inc
1341 1341
 * Insert a conditional rule group into the database.
1342 1342
 */
1343 1343
function webform_conditional_insert($conditional) {
1344
  $transaction = db_transaction();
1344 1345
  drupal_write_record('webform_conditional', $conditional);
1345 1346
  foreach ($conditional['rules'] as $rid => $rule) {
1346 1347
    $rule['nid'] = $conditional['nid'];
......
1360 1361
 * Update a conditional setting in the database.
1361 1362
 */
1362 1363
function webform_conditional_update($node, $conditional) {
1364
  $transaction = db_transaction();
1363 1365
  webform_conditional_delete($node, $conditional);
1364 1366
  webform_conditional_insert($conditional);
1365 1367
}
......
1368 1370
 * Delete a conditional rule group.
1369 1371
 */
1370 1372
function webform_conditional_delete($node, $conditional) {
1373
  $transaction = db_transaction();
1371 1374
  db_delete('webform_conditional')
1372 1375
    ->condition('nid', $node->nid)
1373 1376
    ->condition('rgid', $conditional['rgid'])

Also available in: Unified diff