function db_or

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

Return value

DatabaseCondition

Related topics

10 calls to db_or()
hook_query_TAG_alter in drupal/modules/system/system.api.php
Perform alterations to a structured query for a given tag.
node_access in drupal/modules/node/node.module
Determines whether the current user may perform the operation on the node.
node_access_view_all_nodes in drupal/modules/node/node.module
Determines whether the user has a global viewing grant for all nodes.
SearchQuery::executeFirstPass in drupal/modules/search/search.extender.inc
Executes the first pass query.
SearchQuery::parseSearchExpression in drupal/modules/search/search.extender.inc
Parses the search query into SQL conditions.

... See full list

File

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

Code

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