Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I seem to be having problems getting this to work. I started with a view with Usernode: Name and User Location: Country in a grid view and when that didn't work I tried cutting it back to a vert simple table listing of just User Location: Country but it doesn't seem to work. I have 13 usernodes with locations but when I run the view I get 17 _pages_ of results!
I tried to look at the demonstrations but they seem blank or missing?
The view export looks like:
$view = new stdClass();
$view->name = 'profiles_user';
$view->description = '';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Profiles';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'table';
$view->url = 'view/profiles';
$view->use_pager = TRUE;
$view->nodes_per_page = '20';
$view->sort = array (
array (
'tablename' => 'user_location',
'field' => 'country',
'sortorder' => 'ASC',
'options' => '',
),
array (
'tablename' => 'usernode_users',
'field' => 'name',
'sortorder' => 'ASC',
'options' => '',
),
);
$view->argument = array (
);
$view->field = array (
array (
'tablename' => 'user_location',
'field' => 'country',
'label' => 'Country',
'sortable' => '1',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'usernode',
),
),
);
$view->exposed_filter = array (
);
$view->requires = array(user_location, usernode_users, node);
$views[$view->name] = $view;
I'd really appreciate some help.