aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-11-14 18:47:57 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-11-14 18:47:57 -0200
commitb581c3605fbb053c063841ef730d9f26c5ebfb9a (patch)
tree287bdd486e6dd2a00fe4a1c22e936ffb2dab67dd
parentd61608bca97500a6ce6ff5625242ea6d064741aa (diff)
downloadmuamba-b581c3605fbb053c063841ef730d9f26c5ebfb9a.tar.gz
muamba-b581c3605fbb053c063841ef730d9f26c5ebfb9a.tar.bz2
Views fixes
-rw-r--r--features/muamba_interface/muamba_interface.views_default.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/features/muamba_interface/muamba_interface.views_default.inc b/features/muamba_interface/muamba_interface.views_default.inc
index 75afb43..40f010a 100644
--- a/features/muamba_interface/muamba_interface.views_default.inc
+++ b/features/muamba_interface/muamba_interface.views_default.inc
@@ -1229,7 +1229,6 @@ function muamba_interface_views_default_views() {
$handler->display->display_options['filters']['status_1']['id'] = 'status_1';
$handler->display->display_options['filters']['status_1']['table'] = 'muamba';
$handler->display->display_options['filters']['status_1']['field'] = 'status';
- $handler->display->display_options['filters']['status_1']['relationship'] = 'nid';
$handler->display->display_options['filters']['status_1']['value'] = array(
1 => '1',
);
@@ -1311,6 +1310,11 @@ function muamba_interface_views_default_views() {
$handler->display->display_options['relationships']['owner']['table'] = 'muamba';
$handler->display->display_options['relationships']['owner']['field'] = 'owner';
$handler->display->display_options['relationships']['owner']['required'] = 0;
+ /* Relação: Muamba: Muamba requester user */
+ $handler->display->display_options['relationships']['uid_1']['id'] = 'uid_1';
+ $handler->display->display_options['relationships']['uid_1']['table'] = 'muamba';
+ $handler->display->display_options['relationships']['uid_1']['field'] = 'uid';
+ $handler->display->display_options['relationships']['uid_1']['required'] = 0;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Campo: Conteúdo: Foto */
$handler->display->display_options['fields']['field_foto']['id'] = 'field_foto';
@@ -1513,6 +1517,12 @@ function muamba_interface_views_default_views() {
1 => '1',
);
$handler->display->display_options['filters']['status_2']['group'] = 0;
+ /* Filter criterion: Usuário: Atual */
+ $handler->display->display_options['filters']['uid_current_1']['id'] = 'uid_current_1';
+ $handler->display->display_options['filters']['uid_current_1']['table'] = 'users';
+ $handler->display->display_options['filters']['uid_current_1']['field'] = 'uid_current';
+ $handler->display->display_options['filters']['uid_current_1']['relationship'] = 'uid_1';
+ $handler->display->display_options['filters']['uid_current_1']['value'] = '1';
/* Display: Favoritas (bloco) */
$handler = $view->new_display('block', 'Favoritas (bloco)', 'block_3');