$view = new view; $view->name = 'destaques_home'; $view->description = 'Lista os destaques (chamadas) da home'; $view->tag = 'destaques, home, chamadas, home'; $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( 'name' => array( 'label' => '', 'link_to_taxonomy' => 0, 'exclude' => 0, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'none', ), 'title' => array( 'label' => '', 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'field_noticia_foto_principal_fid' => array( 'label' => '', 'link_to_node' => 0, 'label_type' => 'none', 'format' => '70x70][thickbox', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_noticia_foto_principal_fid', 'table' => 'node_data_field_noticia_foto_principal', 'field' => 'field_noticia_foto_principal_fid', 'relationship' => 'none', ), 'teaser' => array( 'label' => '', 'exclude' => 0, 'id' => 'teaser', 'table' => 'node_revisions', 'field' => 'teaser', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'created' => array( 'order' => 'DESC', 'granularity' => 'second', 'id' => 'created', 'table' => 'node', 'field' => 'created', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'name' => array( 'default_action' => 'ignore', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'Tudo', 'title' => '%1', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'glossary' => 0, 'limit' => '0', 'case' => 'none', 'path_case' => 'none', 'transform_dash' => 0, 'add_table' => 0, 'require_value' => 0, 'id' => 'name', 'table' => 'term_data', 'field' => 'name', 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'poll' => 0, 'image' => 0, 'panel' => 0, 'banner_lateral' => 0, 'entrevistao' => 0, 'noticia' => 0, 'pagina_estatica' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '3' => 0, '1' => 0, '2' => 0, ), 'validate_argument_type' => 'tid', 'validate_argument_php' => '', ), )); $handler->override_option('filters', array( 'vid' => array( 'operator' => 'in', 'value' => array( '2' => '2', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'vid', 'table' => 'term_data', 'field' => 'vid', 'relationship' => 'none', ), 'status' => array( 'operator' => '=', 'value' => 1, 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'noticia' => 'noticia', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'field_noticia_manchete_value' => array( 'operator' => '!=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'case' => 0, 'id' => 'field_noticia_manchete_value', 'table' => 'node_data_field_noticia_manchete', 'field' => 'field_noticia_manchete_value', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('empty', 'Ainda não há nenhum destaque.'); $handler->override_option('empty_format', '2'); $handler->override_option('distinct', 1);