欢迎各位兄弟 发布技术文章
这里的技术是共享的
if ($view->name == 'allcontentview' && $view->current_display=='page_3') { $query->set_distinct(true); $users_join = $query->table_queue['users']['join']; $users_join->type = 'LEFT'; // $export = kprint_r($users_join, TRUE); // $vars - is a variable which you want to print. // print $export; $query->table_queue['users']['join'] = $users_join; $node_data_field_chat_status_join = $query->table_queue['node_data_field_chat_status']['join']; $node_data_field_chat_status_join->type = 'LEFT'; $query->table_queue['node_data_field_chat_status']['join'] = $node_data_field_chat_status_join; }
}