Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hook_views_query_alter(&$view, &$query) {
- if ($view->name == 'my_view_name') {
- //print_r($query);
- if (!isset($query->where[1]['conditions'][0] ))
- {
- $query->where[1]['conditions'][0] = array(
- 'field' => 'guarantee.vin',
- 'value' => 'X',
- 'operator' =>'LIKE'
- );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement