You are here

function db_or in Drupal 7

Same name and namespace in other branches
  1. 8 core/includes/database.inc \db_or()

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

Return value

DatabaseCondition

Related topics

11 calls to db_or()
hook_query_TAG_alter in modules/system/system.api.php
Perform alterations to a structured query for a given tag.
node_add_node_grants_to_query in modules/node/node.module
Helper function to create the or condition for a node grants check.
SearchQuery::executeFirstPass in modules/search/search.extender.inc
Executes the first pass query.
SearchQuery::parseSearchExpression in modules/search/search.extender.inc
Parses the search query into SQL conditions.
SearchQuery::setOption in modules/search/search.extender.inc
Applies a search option and removes it from the search query string.

... See full list

File

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

Code

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