$view = new view; $view->name = 'recursos'; $view->description = ''; $view->tag = ''; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'type' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'exclude' => 0, 'id' => 'type', 'table' => 'node', 'field' => 'type', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'name_1' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name_1', 'table' => 'users', 'field' => 'name', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'name' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '
[title]
Por: [name_1]
Categoria: [name]
', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_taxonomy' => 0, 'exclude' => 0, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'created' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'recursos' => 'recursos', 'recursos_audio' => 'recursos_audio', 'recursos_texto' => 'recursos_texto', 'recursos_video' => 'recursos_video', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('distinct', 1); $handler->override_option('style_options', array( 'grouping' => '', )); $handler = $view->new_display('block', 'Bloco formação', 'block_3'); $handler->override_option('relationships', array( 'flag_content_rel' => array( 'label' => 'flag', 'required' => 1, 'flag' => 'recurso_destaque', 'user_scope' => 'any', 'id' => 'flag_content_rel', 'table' => 'node', 'field' => 'flag_content_rel', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'recursos' => 'recursos', 'recursos_audio' => 'recursos_audio', 'recursos_texto' => 'recursos_texto', 'recursos_video' => 'recursos_video', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'group_nid' => array( 'operator' => 'or', 'value' => array( '208' => '208', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'group_nid', 'table' => 'og_ancestry', 'field' => 'group_nid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'reduce_duplicates' => 1, ), 'tid' => array( 'operator' => 'or', 'value' => array( '34' => '34', '40' => '40', '41' => '41', '42' => '42', '43' => '43', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'type' => 'select', 'limit' => TRUE, 'vid' => '7', 'id' => 'tid', 'table' => 'term_node', 'field' => 'tid', 'hierarchy' => 1, 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'reduce_duplicates' => 1, ), )); $handler->override_option('footer', 'Veja todos os recursos de Formação'); $handler->override_option('footer_format', '1'); $handler->override_option('footer_empty', 0); $handler->override_option('items_per_page', 4); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1);