$view = new view; $view->name = 'CommodityList'; $view->description = 'Listar alla råvaror efter tillagt-datum'; $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( 'title' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'latitude' => array( 'label' => 'Latitude', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'style' => 'dms', 'exclude' => 1, 'id' => 'latitude', 'table' => 'location', 'field' => 'latitude', 'relationship' => 'none', ), 'longitude' => array( 'label' => 'Longitude', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'style' => 'dms', 'exclude' => 1, 'id' => 'longitude', 'table' => 'location', 'field' => 'longitude', 'relationship' => 'none', ), 'distance' => array( 'label' => 'Avstånd', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'origin' => 'tied', 'units' => 'km', 'latitude' => '', 'longitude' => '', 'postal_code' => '', 'country' => '', 'php_code' => '', 'nid_arg' => '', 'nid_loc_field' => 'node', 'uid_arg' => '', 'exclude' => 0, 'id' => 'distance', 'table' => 'location', 'field' => 'distance', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'commodity' => 'commodity', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => 'type_op', 'label' => 'Node: Type', 'use_operator' => 0, 'identifier' => 'type', 'optional' => 0, 'single' => 1, 'remember' => 0, 'reduce' => 0, ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'distance' => array( 'operator' => 'dist', 'value' => array( 'latitude' => '', 'longitude' => '', 'postal_code' => '', 'country' => '', 'php_code' => '', 'nid_arg' => '', 'nid_loc_field' => 'node', 'uid_arg' => '', 'search_distance' => '100', 'search_units' => 'km', ), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'distance_op', 'identifier' => 'distance', 'label' => 'Location: Distance / Proximity', 'user_location_choose' => 0, 'optional' => 0, 'remember' => 0, ), 'identifier' => 'dist', 'origin' => 'latlon_gmap', 'id' => 'distance', 'table' => 'location', 'field' => 'distance', 'relationship' => 'none', 'gmap_macro' => '', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('items_per_page', 100); $handler->override_option('style_options', array( 'grouping' => '', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'commoditylist'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', ));