Hi:

Please, a need help to filter by one taxonomy term using hook_db_rewrite_sql().

function mymodule_db_rewrite_sql($query, $table, $primary_field) {

   switch ($primary_field) {
    case 'tid':
      $rquery['join'] = 'INNER JOIN t ON n.tid = t.nid'; 
      $rquery['where'] = 'WHERE t.tid = 3656';
     return $rquery;
   }
  
}

thanks.

Comments

kars-t’s picture

Status: Active » Fixed

Hi

I am closing this issue to clean up the issue queue. Feel free to reopen the issue if there is new information and the problem still resides. If not please make sure you close your issues that you don't need any more.

Maybe you can get support from the local user group. Please take a look at this list at groups.drupal.org.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.