function db_or

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

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

Return value

DatabaseCondition

Related topics

9 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 2782

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.