$view = new view; $view->name = 'votos'; $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('relationships', array( 'votingapi_cache' => array( 'label' => 'Vote results', 'required' => 0, 'votingapi' => array( 'value_type' => 'points', 'tag' => 'vote', 'function' => 'count', ), 'id' => 'votingapi_cache', 'table' => 'node', 'field' => 'votingapi_cache', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'function' => array( 'order' => 'DESC', 'id' => 'function', 'table' => 'votingapi_cache', 'field' => 'function', 'relationship' => 'votingapi_cache', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'votable' => 'votable', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('row_plugin', 'node');