E
E
Evgeny Makov2016-11-14 15:02:55
Drupal
Evgeny Makov, 2016-11-14 15:02:55

Set_exposed_input and List(text), how to set value?

Good day!
I display the view programmatically, all filters and arguments were applied up to a certain point - before I got stuck on the filter for a field with the List (text) type.

<?
$view = views_get_view('index_realty');
$view->set_display('page_4');
$view->set_arguments(array($rlty_term_id, $rooms));
$view->set_exposed_input(array('field_tipe_action' => $action_type, 'field_area_total' => $area_from, 'field_area_total_1' => $area_to, 'field_price' => $price_from, 'field_price_1' => $price_to, 'field_god_1'=>$year_from, 'field_god_2'=>$year_to, 'field_seller'=>$seller));  
$view->set_items_per_page(500);
$view->set_current_page($page_num);
$view->execute();
?>

In the last argument for the 'field_seller' field, I tried everything.
I have a list in this field of the standard form:
1|Value
2|Value
...etc.
Passed - 1, '1', 'Value', '1|Value' - does not accept, does not filter the view.
Has anyone come across?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question