You are here

function party_query in Party 7

Same name and namespace in other branches
  1. 8.2 party.module \party_query()

Returns a new SelectQuery extended by PartyQuery for the active database.

Parameters

$options: An array of options to control how the query operates.

Return value

SelectQuery A new SelectQuery object for this connection.

See also

db_select()

1 call to party_query()
party_party_primary_fields_alter in ./party.party.inc
Implements hook_party_primary_fields_alter().

File

./party.module, line 1415
Provides a generic CRM party entity.

Code

function party_query($alias = 'party', $options = array()) {
  return db_select('party', $alias, $options)
    ->addTag('party_access')
    ->extend('PartyQuery');
}