function db_condition

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

Condition

Related topics

File

drupal/core/includes/database.inc, line 567
Core systems for the database layer.

Code

function db_condition($conjunction) {
  return new Condition($conjunction);
}