function db_and

7.x database.inc db_and()

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

Return value

DatabaseCondition

Related topics

8 calls to db_and()
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.
SearchQuery::parseSearchExpression in drupal-7.x/modules/search/search.extender.inc
Parses the search query into SQL conditions.
_block_rehash in drupal-7.x/modules/block/block.module
Updates the 'block' DB table with the blocks currently exported by modules.

... See full list

File

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

Code

function db_and() {
  return new DatabaseCondition('AND');
}