From b1ec1117dadb5408ea843f0720190cd24c171a02 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 12 Oct 2011 10:30:26 -0300 Subject: Updating features --- .../muamba_interface.views_default.inc | 152 ++++++++++++++++++++- 1 file changed, 149 insertions(+), 3 deletions(-) (limited to 'features/muamba_interface') diff --git a/features/muamba_interface/muamba_interface.views_default.inc b/features/muamba_interface/muamba_interface.views_default.inc index 6b5a820..24b52bb 100644 --- a/features/muamba_interface/muamba_interface.views_default.inc +++ b/features/muamba_interface/muamba_interface.views_default.inc @@ -25,7 +25,10 @@ function muamba_interface_views_default_views() { $handler->display->display_options['title'] = 'Minhas muambas'; $handler->display->display_options['use_ajax'] = TRUE; $handler->display->display_options['use_more_text'] = 'mais'; - $handler->display->display_options['access']['type'] = 'perm'; + $handler->display->display_options['access']['type'] = 'role'; + $handler->display->display_options['access']['role'] = array( + 2 => '2', + ); $handler->display->display_options['cache']['type'] = 'none'; $handler->display->display_options['query']['type'] = 'views_query'; $handler->display->display_options['query']['options']['query_comment'] = FALSE; @@ -971,7 +974,10 @@ function muamba_interface_views_default_views() { $handler->display->display_options['title'] = 'Grupos'; $handler->display->display_options['use_ajax'] = TRUE; $handler->display->display_options['use_more_text'] = 'mais'; - $handler->display->display_options['access']['type'] = 'none'; + $handler->display->display_options['access']['type'] = 'role'; + $handler->display->display_options['access']['role'] = array( + 2 => '2', + ); $handler->display->display_options['cache']['type'] = 'none'; $handler->display->display_options['query']['type'] = 'views_query'; $handler->display->display_options['query']['options']['query_comment'] = FALSE; @@ -1302,6 +1308,141 @@ function muamba_interface_views_default_views() { 'page_1' => 'page_1', 'default' => 0, ); + + /* Display: Pública */ + $handler = $view->new_display('page', 'Pública', 'page_2'); + $handler->display->display_options['defaults']['title'] = FALSE; + $handler->display->display_options['title'] = 'Todos os grupos'; + $handler->display->display_options['display_description'] = 'Lista pública'; + $handler->display->display_options['defaults']['access'] = FALSE; + $handler->display->display_options['access']['type'] = 'role'; + $handler->display->display_options['access']['role'] = array( + 1 => '1', + ); + $handler->display->display_options['defaults']['fields'] = FALSE; + /* Campo: Conteúdo: Logo */ + $handler->display->display_options['fields']['field_logo']['id'] = 'field_logo'; + $handler->display->display_options['fields']['field_logo']['table'] = 'field_data_field_logo'; + $handler->display->display_options['fields']['field_logo']['field'] = 'field_logo'; + $handler->display->display_options['fields']['field_logo']['label'] = 'Grupo'; + $handler->display->display_options['fields']['field_logo']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['field_logo']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['field_logo']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['field_logo']['alter']['external'] = 0; + $handler->display->display_options['fields']['field_logo']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['field_logo']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['field_logo']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['field_logo']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['field_logo']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['field_logo']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['field_logo']['alter']['trim'] = 0; + $handler->display->display_options['fields']['field_logo']['alter']['html'] = 0; + $handler->display->display_options['fields']['field_logo']['element_label_colon'] = 1; + $handler->display->display_options['fields']['field_logo']['element_default_classes'] = 1; + $handler->display->display_options['fields']['field_logo']['hide_empty'] = 0; + $handler->display->display_options['fields']['field_logo']['empty_zero'] = 0; + $handler->display->display_options['fields']['field_logo']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['field_logo']['click_sort_column'] = 'fid'; + $handler->display->display_options['fields']['field_logo']['settings'] = array( + 'image_style' => 'thumbnail', + 'image_link' => 'content', + ); + $handler->display->display_options['fields']['field_logo']['field_api_classes'] = 0; + /* Campo: Conteúdo: Título */ + $handler->display->display_options['fields']['title']['id'] = 'title'; + $handler->display->display_options['fields']['title']['table'] = 'node'; + $handler->display->display_options['fields']['title']['field'] = 'title'; + $handler->display->display_options['fields']['title']['label'] = 'Nome'; + $handler->display->display_options['fields']['title']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['title']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['title']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['title']['alter']['external'] = 0; + $handler->display->display_options['fields']['title']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['title']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['title']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['title']['alter']['trim'] = 0; + $handler->display->display_options['fields']['title']['alter']['html'] = 0; + $handler->display->display_options['fields']['title']['element_label_colon'] = 1; + $handler->display->display_options['fields']['title']['element_default_classes'] = 1; + $handler->display->display_options['fields']['title']['hide_empty'] = 0; + $handler->display->display_options['fields']['title']['empty_zero'] = 0; + $handler->display->display_options['fields']['title']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['title']['link_to_node'] = 1; + /* Campo: Conteúdo: Descrição */ + $handler->display->display_options['fields']['field_descricao']['id'] = 'field_descricao'; + $handler->display->display_options['fields']['field_descricao']['table'] = 'field_data_field_descricao'; + $handler->display->display_options['fields']['field_descricao']['field'] = 'field_descricao'; + $handler->display->display_options['fields']['field_descricao']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['field_descricao']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['field_descricao']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['field_descricao']['alter']['external'] = 0; + $handler->display->display_options['fields']['field_descricao']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['field_descricao']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['field_descricao']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['field_descricao']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['field_descricao']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['field_descricao']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['field_descricao']['alter']['trim'] = 0; + $handler->display->display_options['fields']['field_descricao']['alter']['html'] = 0; + $handler->display->display_options['fields']['field_descricao']['element_label_colon'] = 1; + $handler->display->display_options['fields']['field_descricao']['element_default_classes'] = 1; + $handler->display->display_options['fields']['field_descricao']['hide_empty'] = 0; + $handler->display->display_options['fields']['field_descricao']['empty_zero'] = 0; + $handler->display->display_options['fields']['field_descricao']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['field_descricao']['field_api_classes'] = 0; + /* Campo: Organic groups group: Created */ + $handler->display->display_options['fields']['created']['id'] = 'created'; + $handler->display->display_options['fields']['created']['table'] = 'og'; + $handler->display->display_options['fields']['created']['field'] = 'created'; + $handler->display->display_options['fields']['created']['relationship'] = 'og_rel'; + $handler->display->display_options['fields']['created']['label'] = 'Since'; + $handler->display->display_options['fields']['created']['exclude'] = TRUE; + $handler->display->display_options['fields']['created']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['created']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['created']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['created']['alter']['external'] = 0; + $handler->display->display_options['fields']['created']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['created']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['created']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['created']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['created']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['created']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['created']['alter']['trim'] = 0; + $handler->display->display_options['fields']['created']['alter']['html'] = 0; + $handler->display->display_options['fields']['created']['element_label_colon'] = 1; + $handler->display->display_options['fields']['created']['element_default_classes'] = 1; + $handler->display->display_options['fields']['created']['hide_empty'] = 0; + $handler->display->display_options['fields']['created']['empty_zero'] = 0; + $handler->display->display_options['fields']['created']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['created']['date_format'] = 'time ago'; + /* Campo: Conteúdo: Acesso */ + $handler->display->display_options['fields']['group_access']['id'] = 'group_access'; + $handler->display->display_options['fields']['group_access']['table'] = 'field_data_group_access'; + $handler->display->display_options['fields']['group_access']['field'] = 'group_access'; + $handler->display->display_options['fields']['group_access']['label'] = 'Visibilidade'; + $handler->display->display_options['fields']['group_access']['exclude'] = TRUE; + $handler->display->display_options['fields']['group_access']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['group_access']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['group_access']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['group_access']['alter']['external'] = 0; + $handler->display->display_options['fields']['group_access']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['group_access']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['group_access']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['group_access']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['group_access']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['group_access']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['group_access']['alter']['trim'] = 0; + $handler->display->display_options['fields']['group_access']['alter']['html'] = 0; + $handler->display->display_options['fields']['group_access']['element_label_colon'] = 1; + $handler->display->display_options['fields']['group_access']['element_default_classes'] = 1; + $handler->display->display_options['fields']['group_access']['hide_empty'] = 0; + $handler->display->display_options['fields']['group_access']['empty_zero'] = 0; + $handler->display->display_options['fields']['group_access']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['group_access']['field_api_classes'] = 0; + $handler->display->display_options['path'] = 'og'; $translatables['og_list'] = array( t('Defaults'), t('Grupos'), @@ -1326,6 +1467,8 @@ function muamba_interface_views_default_views() { t('Visibilidade'), t('Inscrição'), t('Feed'), + t('Pública'), + t('Lista pública'), ); $export['og_list'] = $view; @@ -1344,7 +1487,10 @@ function muamba_interface_views_default_views() { $handler->display->display_options['title'] = 'Transações'; $handler->display->display_options['use_ajax'] = TRUE; $handler->display->display_options['use_more_text'] = 'mais'; - $handler->display->display_options['access']['type'] = 'none'; + $handler->display->display_options['access']['type'] = 'role'; + $handler->display->display_options['access']['role'] = array( + 2 => '2', + ); $handler->display->display_options['cache']['type'] = 'none'; $handler->display->display_options['query']['type'] = 'views_query'; $handler->display->display_options['query']['options']['query_comment'] = FALSE; -- cgit v1.2.3