function _messaging_query_conditions in Messaging 6.4
Same name and namespace in other branches
- 6 messaging.module \_messaging_query_conditions()
- 6.2 messaging.module \_messaging_query_conditions()
- 6.3 messaging.module \_messaging_query_conditions()
Helper function for query builders.
Using schema data get 'field = [placeholder]' and args arrays
Parameters
$table: Table name (to be prefixed)
$params: Array of field => value conditions
$table_alias: Optional table alias to prefix fields in conditions
1 call to _messaging_query_conditions()
- Messaging_Destination::db_query in includes/
messaging_destination.class.inc - Db query for destinations table
File
- ./
messaging.module, line 849
Code
function _messaging_query_conditions($table, $params, $table_alias = NULL) {
$query = _messaging_query_where($table, $params, $table_alias);
// Return arrwy with conditions and arguments. Also full where clause.
return array(
'conditions' => $query['where'],
'args' => $query['args'],
'where' => implode(' AND ', $query['where']),
);
}