function chado_contact_chado_node_sync_select_query
2.x tripal_contact.chado_node.inc | chado_contact_chado_node_sync_select_query($query) |
3.x tripal_contact.chado_node.inc | chado_contact_chado_node_sync_select_query($query) |
Implements [content_type]_chado_node_sync_select_query().
Adds a where clause to the query to exclude the NULL contact.
File
- tripal_contact/
includes/ tripal_contact.chado_node.inc, line 734 - Implements drupal node hooks.
Code
function chado_contact_chado_node_sync_select_query($query) {
$query['where_clauses']['title'][] = 'contact.name <> :contact_name_null1';
$query['where_clauses']['title'][] = 'contact.name <> :contact_name_null2';
$query['where_args']['title'][':contact_name_null1'] = 'null';
$query['where_args']['title'][':contact_name_null2'] = 'NULL';
return $query;
}