mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Use farm_area taxonomy machine name instead of vid in View filter.
This commit is contained in:
parent
a985a6d6be
commit
197b81da73
1 changed files with 6 additions and 7 deletions
|
@ -91,14 +91,13 @@ function farm_area_views_default_views() {
|
|||
$handler->display->display_options['sorts']['weight']['id'] = 'weight';
|
||||
$handler->display->display_options['sorts']['weight']['table'] = 'taxonomy_term_data';
|
||||
$handler->display->display_options['sorts']['weight']['field'] = 'weight';
|
||||
/* Filter criterion: Taxonomy term: Vocabulary */
|
||||
$handler->display->display_options['filters']['vid']['id'] = 'vid';
|
||||
$handler->display->display_options['filters']['vid']['table'] = 'taxonomy_term_data';
|
||||
$handler->display->display_options['filters']['vid']['field'] = 'vid';
|
||||
$handler->display->display_options['filters']['vid']['value'] = array(
|
||||
1 => '1',
|
||||
/* Filter criterion: Taxonomy vocabulary: Machine name */
|
||||
$handler->display->display_options['filters']['machine_name']['id'] = 'machine_name';
|
||||
$handler->display->display_options['filters']['machine_name']['table'] = 'taxonomy_vocabulary';
|
||||
$handler->display->display_options['filters']['machine_name']['field'] = 'machine_name';
|
||||
$handler->display->display_options['filters']['machine_name']['value'] = array(
|
||||
'farm_areas' => 'farm_areas',
|
||||
);
|
||||
$handler->display->display_options['filters']['vid']['group'] = 1;
|
||||
|
||||
/* Display: Page */
|
||||
$handler = $view->new_display('page', 'Page', 'page');
|
||||
|
|
Loading…
Reference in a new issue