name = 'draggable'; $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( 'title' => array( 'label' => 'Title', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'link_to_node' => 0, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'value0' => array( 'label' => 'Value #1', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'exclude' => 0, 'id' => 'value0', 'table' => 'draggableviews_structure0', 'field' => 'value0', 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'value0' => array( 'order' => 'ASC', 'id' => 'value0', 'table' => 'draggableviews_structure0', 'field' => 'value0', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('items_per_page', 0); $handler->override_option('style_plugin', 'draggabletable'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'title' => 'title', 'value0' => 'value0', ), 'info' => array( 'title' => array( 'sortable' => 0, 'separator' => '', ), 'value0' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => '-1', 'tabledrag_hierarchy' => array( 'field' => 'value0', 'handler' => 'native', ), 'tabledrag_order' => array( '0' => array( 'field' => 'value0', 'handler' => 'native', 'del' => 'Delete', ), ), 'tabledrag_order_add' => 'Add order field', 'tabledrag_order_visible' => array( 'visible' => 0, ), 'tabledrag_hierarchy_visible' => array( 'visible' => 'visible', ), 'tabledrag_types_add' => 'Add type', 'tabledrag_expand' => array( 'expand_links' => 'expand_links', 'collapsed' => 0, ), )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'draggable'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Drag Table', 'description' => '', 'weight' => '0', 'name' => 'primary-links', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $views[$view->name] = $view; return $views; }