function db_or

7.x database.inc db_or()

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

Return value

DatabaseCondition

Related topics

21 calls to db_or()
DatabaseSelectComplexTestCase::testNestedConditions in drupal-7.x/modules/simpletest/tests/database_test.test
Confirm that we can properly nest conditional clauses.
DatabaseUpdateComplexTestCase::testOrConditionUpdate in drupal-7.x/modules/simpletest/tests/database_test.test
Test updates with OR conditionals.
hook_query_TAG_alter in drupal-7.x/modules/system/system.api.php
Perform alterations to a structured query for a given tag.
node_access in drupal-7.x/modules/node/node.module
Determines whether the current user may perform the operation on the node.
node_access_view_all_nodes in drupal-7.x/modules/node/node.module
Determines whether the user has a global viewing grant for all nodes.

... See full list

File

drupal-7.x/includes/database/database.inc, line 2663
Core systems for the database layer.

Code

function db_or() {
  return new DatabaseCondition('OR');
}