function db_xor

7.x database.inc db_xor()
8.x database.inc db_xor()

Returns a new DatabaseCondition, set to "XOR" all conditions together.

Return value

DatabaseCondition

Related topics

File

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

Code

function db_xor() {
  return new DatabaseCondition('XOR');
}