db_condition

  1. drupal
    1. 8
    2. 7
Versions
8 – 7 db_condition($conjunction)

Returns a new DatabaseCondition, set to the specified conjunction.

Internal API function call. The db_and(), db_or(), and db_xor() functions are preferred.

Parameters

$conjunction The conjunction to use for query conditions (AND, OR or XOR).

Return value

DatabaseCondition

Related topics

▾ 1 function calls db_condition()

system_update_7003 in modules/system/system.install
Update {blocked_ips} with valid IP addresses from {access}.

Code

includes/database/database.inc, line 2663

<?php
function db_condition($conjunction) {
  return new DatabaseCondition($conjunction);
}
?>