function chado_pub_chado_node_sync_select_query

2.x tripal_pub.chado_node.inc chado_pub_chado_node_sync_select_query($query)
3.x tripal_pub.chado_node.inc chado_pub_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 pub.

File

tripal_pub/includes/tripal_pub.chado_node.inc, line 1285
Implements Drupal Node hooks to create the chado_analysis node content type.

Code

function chado_pub_chado_node_sync_select_query($query) {
  $query['where_clauses']['title'][] = 'pub.title <> :pub_title_null';
  $query['where_args']['title'][':pub_title_null'] = 'NULL';

  return $query;
}