diff options
Diffstat (limited to 'features/muamba_interface')
4 files changed, 863 insertions, 0 deletions
diff --git a/features/muamba_interface/muamba_interface.features.inc b/features/muamba_interface/muamba_interface.features.inc index 6f04017..aaca3ca 100644 --- a/features/muamba_interface/muamba_interface.features.inc +++ b/features/muamba_interface/muamba_interface.features.inc @@ -9,6 +9,10 @@ */ function muamba_interface_ctools_plugin_api() { list($module, $api) = func_get_args(); + if ($module == "page_manager" && $api == "pages_default") { + return array("version" => "1"); + } + list($module, $api) = func_get_args(); if ($module == "strongarm" && $api == "strongarm") { return array("version" => "1"); } diff --git a/features/muamba_interface/muamba_interface.info b/features/muamba_interface/muamba_interface.info index 2c54e9b..528c9f6 100644 --- a/features/muamba_interface/muamba_interface.info +++ b/features/muamba_interface/muamba_interface.info @@ -8,15 +8,20 @@ dependencies[] = "image" dependencies[] = "image_captcha" dependencies[] = "l10n_update" dependencies[] = "menu" +dependencies[] = "og" +dependencies[] = "page_manager" dependencies[] = "strongarm" dependencies[] = "views" description = "Muamba Interface Feature" +features[ctools][] = "page_manager:pages_default:1" features[ctools][] = "strongarm:strongarm:1" features[ctools][] = "views:views_default:3.0" features[menu_custom][] = "main-menu" features[menu_custom][] = "management" features[menu_custom][] = "navigation" features[menu_custom][] = "user-menu" +features[page_manager_handlers][] = "node_view_panel_context" +features[page_manager_pages][] = "principal" features[user_permission][] = "access site-wide contact form" features[user_permission][] = "access user contact forms" features[user_permission][] = "administer contact forms" @@ -63,6 +68,8 @@ features[variable][] = "user_picture_path" features[variable][] = "user_picture_style" features[views_view][] = "muambas" features[views_view][] = "og_list" +features[views_view][] = "og_members" +features[views_view][] = "og_user_groups" features[views_view][] = "transacoes" name = "Muamba Interface" package = "Features" diff --git a/features/muamba_interface/muamba_interface.pages_default.inc b/features/muamba_interface/muamba_interface.pages_default.inc new file mode 100644 index 0000000..6f8c901 --- /dev/null +++ b/features/muamba_interface/muamba_interface.pages_default.inc @@ -0,0 +1,414 @@ +<?php +/** + * @file + * muamba_interface.pages_default.inc + */ + +/** + * Implements hook_default_page_manager_handlers(). + */ +function muamba_interface_default_page_manager_handlers() { + $export = array(); + + $handler = new stdClass; + $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ + $handler->api_version = 1; + $handler->name = 'node_view_panel_context'; + $handler->task = 'node_view'; + $handler->subtask = ''; + $handler->handler = 'panel_context'; + $handler->weight = 0; + $handler->conf = array( + 'title' => 'OG Group', + 'no_blocks' => 0, + 'pipeline' => 'standard', + 'css_id' => '', + 'css' => '', + 'contexts' => array(), + 'relationships' => array( + 0 => array( + 'identifier' => 'OG group from node', + 'keyword' => 'group', + 'name' => 'og_group_from_node', + 'context' => 'argument_entity_id:node_1', + 'id' => 1, + ), + ), + 'access' => array( + 'plugins' => array( + 0 => array( + 'name' => 'og_is_node_group', + 'settings' => NULL, + 'context' => 'argument_entity_id:node_1', + 'not' => FALSE, + ), + ), + 'logic' => 'and', + ), + ); + $display = new panels_display; + $display->layout = 'twocol'; + $display->layout_settings = array(); + $display->panel_settings = array( + 'style_settings' => array( + 'default' => NULL, + 'left' => NULL, + 'right' => NULL, + ), + ); + $display->cache = array(); + $display->title = ''; + $display->content = array(); + $display->panels = array(); + $pane = new stdClass; + $pane->pid = 'new-1'; + $pane->panel = 'left'; + $pane->type = 'views_panes'; + $pane->subtype = 'og_members-panel_pane_1'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'context' => array( + 0 => 'relationship_og_group_from_node_1', + ), + 'override_title' => 0, + 'override_title_text' => '', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 0; + $display->content['new-1'] = $pane; + $display->panels['left'][0] = 'new-1'; + $pane = new stdClass; + $pane->pid = 'new-2'; + $pane->panel = 'right'; + $pane->type = 'views_panes'; + $pane->subtype = 'og_nodes-panel_pane_1'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'context' => array( + 0 => 'relationship_og_group_from_node_1', + ), + 'override_title' => 0, + 'override_title_text' => '', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 0; + $display->content['new-2'] = $pane; + $display->panels['right'][0] = 'new-2'; + $pane = new stdClass; + $pane->pid = 'new-3'; + $pane->panel = 'right'; + $pane->type = 'node_content'; + $pane->subtype = 'node_content'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'links' => 1, + 'no_extras' => 1, + 'override_title' => 0, + 'override_title_text' => '', + 'identifier' => '', + 'link' => 1, + 'leave_node_title' => 0, + 'build_mode' => 'full', + 'context' => 'argument_entity_id:node_1', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 1; + $display->content['new-3'] = $pane; + $display->panels['right'][1] = 'new-3'; + $display->hide_title = PANELS_TITLE_FIXED; + $display->title_pane = 'new-1'; + $handler->conf['display'] = $display; + $export['node_view_panel_context'] = $handler; + + return $export; +} + +/** + * Implements hook_default_page_manager_pages(). + */ +function muamba_interface_default_page_manager_pages() { + $page = new stdClass; + $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ + $page->api_version = 1; + $page->name = 'principal'; + $page->task = 'page'; + $page->admin_title = 'Principal'; + $page->admin_description = 'Painel principal'; + $page->path = 'principal'; + $page->access = array( + 'plugins' => array(), + 'logic' => 'and', + ); + $page->menu = array(); + $page->arguments = array(); + $page->conf = array( + 'admin_paths' => FALSE, + ); + $page->default_handlers = array(); + $handler = new stdClass; + $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ + $handler->api_version = 1; + $handler->name = 'page_principal_panel_context'; + $handler->task = 'page'; + $handler->subtask = 'principal'; + $handler->handler = 'panel_context'; + $handler->weight = 0; + $handler->conf = array( + 'title' => 'Panel', + 'no_blocks' => 0, + 'pipeline' => 'standard', + 'css_id' => '', + 'css' => '', + 'contexts' => array(), + 'relationships' => array(), + ); + $display = new panels_display; + $display->layout = 'onecol'; + $display->layout_settings = array(); + $display->panel_settings = array( + 'style_settings' => array( + 'default' => NULL, + 'middle' => array( + 'tabs_type' => 'horizontal_tabs', + ), + ), + 'middle' => array( + 'style' => 'tabs', + ), + ); + $display->cache = array(); + $display->title = 'Meu painel'; + $display->content = array(); + $display->panels = array(); + $pane = new stdClass; + $pane->pid = 'new-1'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'og_list'; + $pane->shown = TRUE; + $pane->access = array( + 'plugins' => array( + 0 => array( + 'name' => 'role', + 'settings' => array( + 'rids' => array( + 0 => 1, + ), + ), + 'context' => 'logged-in-user', + 'not' => FALSE, + ), + ), + ); + $pane->configuration = array( + 'override_pager_settings' => 0, + 'use_pager' => 1, + 'nodes_per_page' => '0', + 'pager_id' => '0', + 'offset' => '0', + 'more_link' => 0, + 'feed_icons' => 0, + 'panel_args' => 0, + 'link_to_view' => 0, + 'args' => '', + 'url' => '', + 'display' => 'page_2', + 'override_title' => 1, + 'override_title_text' => 'Grupos', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 0; + $display->content['new-1'] = $pane; + $display->panels['middle'][0] = 'new-1'; + $pane = new stdClass; + $pane->pid = 'new-2'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'og_list'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'override_pager_settings' => 0, + 'use_pager' => 1, + 'nodes_per_page' => '0', + 'pager_id' => '0', + 'offset' => '0', + 'more_link' => 0, + 'feed_icons' => 0, + 'panel_args' => 0, + 'link_to_view' => 0, + 'args' => '', + 'url' => '', + 'display' => 'page_1', + 'override_title' => 1, + 'override_title_text' => 'Todos os grupos', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 1; + $display->content['new-2'] = $pane; + $display->panels['middle'][1] = 'new-2'; + $pane = new stdClass; + $pane->pid = 'new-3'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'og_user_groups'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'override_pager_settings' => 0, + 'use_pager' => 1, + 'nodes_per_page' => '0', + 'pager_id' => '0', + 'offset' => '0', + 'more_link' => 0, + 'feed_icons' => 0, + 'panel_args' => 0, + 'link_to_view' => 0, + 'args' => '', + 'url' => '', + 'display' => 'page_1', + 'override_title' => 1, + 'override_title_text' => 'Meus grupos', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 2; + $display->content['new-3'] = $pane; + $display->panels['middle'][2] = 'new-3'; + $pane = new stdClass; + $pane->pid = 'new-4'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'muambas'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'override_pager_settings' => 0, + 'use_pager' => 1, + 'nodes_per_page' => '5', + 'pager_id' => '0', + 'offset' => '0', + 'more_link' => 0, + 'feed_icons' => 0, + 'panel_args' => 0, + 'link_to_view' => 0, + 'args' => '', + 'url' => '', + 'display' => 'block_3', + 'override_title' => 1, + 'override_title_text' => 'Favoritos', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 3; + $display->content['new-4'] = $pane; + $display->panels['middle'][3] = 'new-4'; + $pane = new stdClass; + $pane->pid = 'new-5'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'transacoes'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'override_pager_settings' => 0, + 'use_pager' => 1, + 'nodes_per_page' => '10', + 'pager_id' => '0', + 'offset' => '0', + 'more_link' => 0, + 'feed_icons' => 0, + 'panel_args' => 0, + 'link_to_view' => 0, + 'args' => '', + 'url' => '', + 'display' => 'block_2', + 'override_title' => 1, + 'override_title_text' => 'Me pediram', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 4; + $display->content['new-5'] = $pane; + $display->panels['middle'][4] = 'new-5'; + $pane = new stdClass; + $pane->pid = 'new-6'; + $pane->panel = 'middle'; + $pane->type = 'views'; + $pane->subtype = 'transacoes'; + $pane->shown = TRUE; + $pane->access = array(); + $pane->configuration = array( + 'override_pager_settings' => 0, + 'use_pager' => 1, + 'nodes_per_page' => '10', + 'pager_id' => '0', + 'offset' => '0', + 'more_link' => 0, + 'feed_icons' => 0, + 'panel_args' => 0, + 'link_to_view' => 0, + 'args' => '', + 'url' => '', + 'display' => 'block_1', + 'override_title' => 1, + 'override_title_text' => 'Meus pedidos', + ); + $pane->cache = array(); + $pane->style = array( + 'settings' => NULL, + ); + $pane->css = array(); + $pane->extras = array(); + $pane->position = 5; + $display->content['new-6'] = $pane; + $display->panels['middle'][5] = 'new-6'; + $display->hide_title = PANELS_TITLE_FIXED; + $display->title_pane = 'new-6'; + $handler->conf['display'] = $display; + $page->default_handlers[$handler->name] = $handler; + $pages['principal'] = $page; + + return $pages; + +} diff --git a/features/muamba_interface/muamba_interface.views_default.inc b/features/muamba_interface/muamba_interface.views_default.inc index 4c839d9..5ca01bf 100644 --- a/features/muamba_interface/muamba_interface.views_default.inc +++ b/features/muamba_interface/muamba_interface.views_default.inc @@ -1517,6 +1517,444 @@ function muamba_interface_views_default_views() { $export['og_list'] = $view; $view = new view; + $view->name = 'og_members'; + $view->description = 'Newest group members.'; + $view->tag = 'og'; + $view->base_table = 'users'; + $view->human_name = 'OG members'; + $view->core = 0; + $view->api_version = '3.0-alpha1'; + $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ + + /* Display: Defaults */ + $handler = $view->new_display('default', 'Defaults', 'default'); + $handler->display->display_options['use_more_text'] = 'mais'; + $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; + $handler->display->display_options['exposed_form']['type'] = 'basic'; + $handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Restaurar'; + $handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Ordenar por'; + $handler->display->display_options['exposed_form']['options']['sort_asc_label'] = 'Crescente'; + $handler->display->display_options['pager']['type'] = 'some'; + $handler->display->display_options['pager']['options']['items_per_page'] = '5'; + $handler->display->display_options['pager']['options']['offset'] = '0'; + $handler->display->display_options['style_plugin'] = 'default'; + $handler->display->display_options['row_plugin'] = 'fields'; + /* Relação: Group membership: Usuário group membership */ + $handler->display->display_options['relationships']['og_membership_rel']['id'] = 'og_membership_rel'; + $handler->display->display_options['relationships']['og_membership_rel']['table'] = 'users'; + $handler->display->display_options['relationships']['og_membership_rel']['field'] = 'og_membership_rel'; + $handler->display->display_options['relationships']['og_membership_rel']['required'] = 0; + /* Campo: Usuário: Nome */ + $handler->display->display_options['fields']['name']['id'] = 'name'; + $handler->display->display_options['fields']['name']['table'] = 'users'; + $handler->display->display_options['fields']['name']['field'] = 'name'; + $handler->display->display_options['fields']['name']['label'] = ''; + $handler->display->display_options['fields']['name']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['name']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['name']['alter']['trim'] = 0; + $handler->display->display_options['fields']['name']['alter']['html'] = 0; + $handler->display->display_options['fields']['name']['hide_empty'] = 0; + $handler->display->display_options['fields']['name']['empty_zero'] = 0; + $handler->display->display_options['fields']['name']['link_to_user'] = 1; + $handler->display->display_options['fields']['name']['overwrite_anonymous'] = 0; + /* Critério de ordenação: OG membership: Created */ + $handler->display->display_options['sorts']['created']['id'] = 'created'; + $handler->display->display_options['sorts']['created']['table'] = 'og_membership'; + $handler->display->display_options['sorts']['created']['field'] = 'created'; + $handler->display->display_options['sorts']['created']['relationship'] = 'og_membership_rel'; + $handler->display->display_options['sorts']['created']['order'] = 'DESC'; + /* Contextual filter: OG membership: Grupo gid */ + $handler->display->display_options['arguments']['group']['id'] = 'group'; + $handler->display->display_options['arguments']['group']['table'] = 'og_membership'; + $handler->display->display_options['arguments']['group']['field'] = 'group'; + $handler->display->display_options['arguments']['group']['relationship'] = 'og_membership_rel'; + $handler->display->display_options['arguments']['group']['default_action'] = 'not found'; + $handler->display->display_options['arguments']['group']['title_enable'] = 1; + $handler->display->display_options['arguments']['group']['title'] = '%1 group members'; + $handler->display->display_options['arguments']['group']['default_argument_type'] = 'fixed'; + $handler->display->display_options['arguments']['group']['default_argument_skip_url'] = 0; + $handler->display->display_options['arguments']['group']['summary']['number_of_records'] = '0'; + $handler->display->display_options['arguments']['group']['summary']['format'] = 'default_summary'; + $handler->display->display_options['arguments']['group']['summary_options']['items_per_page'] = '25'; + $handler->display->display_options['arguments']['group']['break_phrase'] = 0; + $handler->display->display_options['arguments']['group']['not'] = 0; + /* Filter criterion: Usuário: Ativo */ + $handler->display->display_options['filters']['status']['id'] = 'status'; + $handler->display->display_options['filters']['status']['table'] = 'users'; + $handler->display->display_options['filters']['status']['field'] = 'status'; + $handler->display->display_options['filters']['status']['value'] = '1'; + /* Filter criterion: OG membership: State */ + $handler->display->display_options['filters']['state']['id'] = 'state'; + $handler->display->display_options['filters']['state']['table'] = 'og_membership'; + $handler->display->display_options['filters']['state']['field'] = 'state'; + $handler->display->display_options['filters']['state']['relationship'] = 'og_membership_rel'; + $handler->display->display_options['filters']['state']['value'] = array( + 1 => '1', + ); + + /* Display: Block */ + $handler = $view->new_display('block', 'Block', 'block_1'); + + /* Display: Content pane */ + $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1'); + $handler->display->display_options['pane_title'] = 'Membros do grupo'; + $handler->display->display_options['allow']['use_pager'] = 0; + $handler->display->display_options['allow']['items_per_page'] = 0; + $handler->display->display_options['allow']['offset'] = 0; + $handler->display->display_options['allow']['link_to_view'] = 0; + $handler->display->display_options['allow']['more_link'] = 0; + $handler->display->display_options['allow']['path_override'] = 0; + $handler->display->display_options['allow']['title_override'] = 'title_override'; + $handler->display->display_options['allow']['exposed_form'] = 0; + $handler->display->display_options['allow']['fields_override'] = 0; + $handler->display->display_options['argument_input'] = array( + 'group' => array( + 'type' => 'context', + 'context' => 'entity:group.gid', + 'context_optional' => 0, + 'panel' => '0', + 'fixed' => '', + 'label' => 'Organic groups membership: Group gid', + ), + ); + $translatables['og_members'] = array( + t('Defaults'), + t('mais'), + t('Aplicar'), + t('Restaurar'), + t('Ordenar por'), + t('Crescente'), + t('Desc'), + t('group membership'), + t('Tudo'), + t('%1 group members'), + t('Block'), + t('Content pane'), + t('Membros do grupo'), + t('View panes'), + ); + $export['og_members'] = $view; + + $view = new view; + $view->name = 'og_user_groups'; + $view->description = 'Show groups of a user.'; + $view->tag = 'og'; + $view->base_table = 'node'; + $view->human_name = 'OG User groups'; + $view->core = 7; + $view->api_version = '3.0-alpha1'; + $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ + + /* Display: Master */ + $handler = $view->new_display('default', 'Master', 'default'); + $handler->display->display_options['use_more_text'] = 'mais'; + $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; + $handler->display->display_options['exposed_form']['type'] = 'basic'; + $handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Restaurar'; + $handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Ordenar por'; + $handler->display->display_options['exposed_form']['options']['sort_asc_label'] = 'Crescente'; + $handler->display->display_options['pager']['type'] = 'full'; + $handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Itens por página'; + $handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Todos -'; + $handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Deslocamento'; + $handler->display->display_options['style_plugin'] = 'table'; + $handler->display->display_options['style_options']['columns'] = array( + 'title' => 'title', + 'state' => 'state', + ); + $handler->display->display_options['style_options']['default'] = '-1'; + $handler->display->display_options['style_options']['info'] = array( + 'title' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + ), + 'state' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + ), + ); + $handler->display->display_options['style_options']['override'] = 1; + $handler->display->display_options['style_options']['sticky'] = 0; + $handler->display->display_options['style_options']['empty_table'] = 0; + /* Comportamento quando sem resultados: Global: Área de texto */ + $handler->display->display_options['empty']['area']['id'] = 'area'; + $handler->display->display_options['empty']['area']['table'] = 'views'; + $handler->display->display_options['empty']['area']['field'] = 'area'; + $handler->display->display_options['empty']['area']['empty'] = FALSE; + $handler->display->display_options['empty']['area']['content'] = 'User is not a member of any group.'; + /* Relação: Grupo: Node group */ + $handler->display->display_options['relationships']['og_rel']['id'] = 'og_rel'; + $handler->display->display_options['relationships']['og_rel']['table'] = 'node'; + $handler->display->display_options['relationships']['og_rel']['field'] = 'og_rel'; + $handler->display->display_options['relationships']['og_rel']['required'] = 0; + /* Relação: Organic groups group: OG membership */ + $handler->display->display_options['relationships']['og_membership']['id'] = 'og_membership'; + $handler->display->display_options['relationships']['og_membership']['table'] = 'og'; + $handler->display->display_options['relationships']['og_membership']['field'] = 'og_membership'; + $handler->display->display_options['relationships']['og_membership']['relationship'] = 'og_rel'; + $handler->display->display_options['relationships']['og_membership']['required'] = 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'] = 'Group name'; + $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']['nl2br'] = 0; + $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0; + $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0; + $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']['link_to_node'] = 1; + /* Campo: OG membership: Created */ + $handler->display->display_options['fields']['created']['id'] = 'created'; + $handler->display->display_options['fields']['created']['table'] = 'og_membership'; + $handler->display->display_options['fields']['created']['field'] = 'created'; + $handler->display->display_options['fields']['created']['relationship'] = 'og_membership'; + $handler->display->display_options['fields']['created']['label'] = 'Member since'; + $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']['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']['date_format'] = 'time ago'; + /* Campo: Conteúdo: Foto */ + $handler->display->display_options['fields']['field_foto']['id'] = 'field_foto'; + $handler->display->display_options['fields']['field_foto']['table'] = 'field_data_field_foto'; + $handler->display->display_options['fields']['field_foto']['field'] = 'field_foto'; + /* Critério de ordenação: Conteúdo: Título */ + $handler->display->display_options['sorts']['title']['id'] = 'title'; + $handler->display->display_options['sorts']['title']['table'] = 'node'; + $handler->display->display_options['sorts']['title']['field'] = 'title'; + /* Contextual filter: We pass to the "Entity ID" the User ID. */ + $handler->display->display_options['arguments']['etid']['id'] = 'etid'; + $handler->display->display_options['arguments']['etid']['table'] = 'og_membership'; + $handler->display->display_options['arguments']['etid']['field'] = 'etid'; + $handler->display->display_options['arguments']['etid']['relationship'] = 'og_membership'; + $handler->display->display_options['arguments']['etid']['ui_name'] = 'We pass to the "Entity ID" the User ID.'; + $handler->display->display_options['arguments']['etid']['default_action'] = 'default'; + $handler->display->display_options['arguments']['etid']['title_enable'] = 1; + $handler->display->display_options['arguments']['etid']['title'] = '%1 groups'; + $handler->display->display_options['arguments']['etid']['default_argument_type'] = 'current_user'; + $handler->display->display_options['arguments']['etid']['default_argument_skip_url'] = 0; + $handler->display->display_options['arguments']['etid']['summary']['number_of_records'] = '0'; + $handler->display->display_options['arguments']['etid']['summary']['format'] = 'default_summary'; + $handler->display->display_options['arguments']['etid']['summary_options']['items_per_page'] = '25'; + $handler->display->display_options['arguments']['etid']['specify_validation'] = 1; + $handler->display->display_options['arguments']['etid']['validate']['type'] = 'user'; + $handler->display->display_options['arguments']['etid']['validate_options']['restrict_roles'] = 0; + $handler->display->display_options['arguments']['etid']['break_phrase'] = 0; + $handler->display->display_options['arguments']['etid']['not'] = 0; + /* Filter criterion: Conteúdo: Publicado */ + $handler->display->display_options['filters']['status']['id'] = 'status'; + $handler->display->display_options['filters']['status']['table'] = 'node'; + $handler->display->display_options['filters']['status']['field'] = 'status'; + $handler->display->display_options['filters']['status']['value'] = 1; + $handler->display->display_options['filters']['status']['group'] = 0; + $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE; + /* Filter criterion: OG membership: State */ + $handler->display->display_options['filters']['state']['id'] = 'state'; + $handler->display->display_options['filters']['state']['table'] = 'og_membership'; + $handler->display->display_options['filters']['state']['field'] = 'state'; + $handler->display->display_options['filters']['state']['relationship'] = 'og_membership'; + $handler->display->display_options['filters']['state']['value'] = array( + 1 => '1', + ); + + /* Display: Page */ + $handler = $view->new_display('page', 'Page', 'page_1'); + $handler->display->display_options['defaults']['title'] = FALSE; + $handler->display->display_options['title'] = 'Meus grupos'; + $handler->display->display_options['defaults']['style_plugin'] = FALSE; + $handler->display->display_options['style_plugin'] = 'table'; + $handler->display->display_options['style_options']['columns'] = array( + 'field_foto' => 'field_foto', + 'title' => 'field_foto', + 'created' => 'created', + ); + $handler->display->display_options['style_options']['default'] = '-1'; + $handler->display->display_options['style_options']['info'] = array( + 'field_foto' => array( + 'align' => '', + 'separator' => '<br />', + ), + 'title' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + ), + 'created' => array( + 'sortable' => 0, + 'default_sort_order' => 'asc', + 'align' => '', + 'separator' => '', + ), + ); + $handler->display->display_options['style_options']['override'] = 1; + $handler->display->display_options['style_options']['sticky'] = 0; + $handler->display->display_options['style_options']['empty_table'] = 0; + $handler->display->display_options['defaults']['style_options'] = FALSE; + $handler->display->display_options['defaults']['row_plugin'] = FALSE; + $handler->display->display_options['defaults']['row_options'] = FALSE; + $handler->display->display_options['defaults']['fields'] = FALSE; + /* Campo: Conteúdo: Foto */ + $handler->display->display_options['fields']['field_foto']['id'] = 'field_foto'; + $handler->display->display_options['fields']['field_foto']['table'] = 'field_data_field_foto'; + $handler->display->display_options['fields']['field_foto']['field'] = 'field_foto'; + $handler->display->display_options['fields']['field_foto']['label'] = 'Grupo'; + $handler->display->display_options['fields']['field_foto']['alter']['alter_text'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['make_link'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['absolute'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['external'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['replace_spaces'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['trim_whitespace'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['nl2br'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['word_boundary'] = 1; + $handler->display->display_options['fields']['field_foto']['alter']['ellipsis'] = 1; + $handler->display->display_options['fields']['field_foto']['alter']['strip_tags'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['trim'] = 0; + $handler->display->display_options['fields']['field_foto']['alter']['html'] = 0; + $handler->display->display_options['fields']['field_foto']['element_label_colon'] = 1; + $handler->display->display_options['fields']['field_foto']['element_default_classes'] = 1; + $handler->display->display_options['fields']['field_foto']['hide_empty'] = 0; + $handler->display->display_options['fields']['field_foto']['empty_zero'] = 0; + $handler->display->display_options['fields']['field_foto']['hide_alter_empty'] = 0; + $handler->display->display_options['fields']['field_foto']['click_sort_column'] = 'fid'; + $handler->display->display_options['fields']['field_foto']['settings'] = array( + 'image_style' => 'thumbnail', + 'image_link' => 'content', + ); + $handler->display->display_options['fields']['field_foto']['group_rows'] = 1; + $handler->display->display_options['fields']['field_foto']['delta_offset'] = '0'; + $handler->display->display_options['fields']['field_foto']['delta_reversed'] = 0; + $handler->display->display_options['fields']['field_foto']['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'] = 'Group name'; + $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']['nl2br'] = 0; + $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0; + $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0; + $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']['link_to_node'] = 1; + /* Campo: OG membership: Created */ + $handler->display->display_options['fields']['created']['id'] = 'created'; + $handler->display->display_options['fields']['created']['table'] = 'og_membership'; + $handler->display->display_options['fields']['created']['field'] = 'created'; + $handler->display->display_options['fields']['created']['relationship'] = 'og_membership'; + $handler->display->display_options['fields']['created']['label'] = 'Member since'; + $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']['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']['date_format'] = 'time ago'; + $handler->display->display_options['defaults']['arguments'] = FALSE; + /* Contextual filter: We pass to the "Entity ID" the User ID. */ + $handler->display->display_options['arguments']['etid']['id'] = 'etid'; + $handler->display->display_options['arguments']['etid']['table'] = 'og_membership'; + $handler->display->display_options['arguments']['etid']['field'] = 'etid'; + $handler->display->display_options['arguments']['etid']['relationship'] = 'og_membership'; + $handler->display->display_options['arguments']['etid']['ui_name'] = 'We pass to the "Entity ID" the User ID.'; + $handler->display->display_options['arguments']['etid']['default_action'] = 'default'; + $handler->display->display_options['arguments']['etid']['title'] = '%1 groups'; + $handler->display->display_options['arguments']['etid']['default_argument_type'] = 'current_user'; + $handler->display->display_options['arguments']['etid']['default_argument_skip_url'] = 0; + $handler->display->display_options['arguments']['etid']['summary']['number_of_records'] = '0'; + $handler->display->display_options['arguments']['etid']['summary']['format'] = 'default_summary'; + $handler->display->display_options['arguments']['etid']['summary_options']['items_per_page'] = '25'; + $handler->display->display_options['arguments']['etid']['specify_validation'] = 1; + $handler->display->display_options['arguments']['etid']['validate']['type'] = 'user'; + $handler->display->display_options['arguments']['etid']['validate_options']['restrict_roles'] = 0; + $handler->display->display_options['arguments']['etid']['break_phrase'] = 0; + $handler->display->display_options['arguments']['etid']['not'] = 0; + $handler->display->display_options['path'] = 'user-groups'; + $translatables['og_user_groups'] = array( + t('Master'), + t('mais'), + t('Aplicar'), + t('Restaurar'), + t('Ordenar por'), + t('Crescente'), + t('Desc'), + t('Itens por página'), + t('- Todos -'), + t('Deslocamento'), + t('User is not a member of any group.'), + t('grupo'), + t('OG membership'), + t('Group name'), + t('Member since'), + t('Foto'), + t('Tudo'), + t('%1 groups'), + t('Page'), + t('Meus grupos'), + t('Grupo'), + ); + $export['og_user_groups'] = $view; + + $view = new view; $view->name = 'transacoes'; $view->description = ''; $view->tag = 'default'; |