array( 'path' => drupal_get_path('module', 'tripal_db') . '/views/handlers', ), 'handlers' => array( 'views_handler_field_dbxref_accession_link' => array( 'parent' => 'views_handler_field', ), ), ); } /** * * @ingroup tripal_db_views */ function tripal_db_views_default_views () { $views = array(); // Main default view // List all cvterms based on cv $view = new view; $view = new view; $view->name = 'all_dbxrefs'; $view->description = 'A listing of all database references filtered by database'; $view->tag = 'chado'; $view->view_php = ''; $view->base_table = 'dbxref'; $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' => 'Database', '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, 'exclude' => 0, 'id' => 'name', 'table' => 'db', 'field' => 'name', 'relationship' => 'none', ), 'accession' => array( 'label' => 'Accession', '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, 'exclude' => 0, 'id' => 'accession', 'table' => 'dbxref', 'field' => 'accession', 'relationship' => 'none', ), 'description' => array( 'label' => 'Description', '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, 'exclude' => 0, 'id' => 'description', 'table' => 'dbxref', 'field' => 'description', 'relationship' => 'none', ), 'version' => array( 'label' => 'Version', '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, 'exclude' => 0, 'id' => 'version', 'table' => 'dbxref', 'field' => 'version', 'relationship' => 'none', ), 'accession_link' => array( 'label' => 'External Link', 'alter' => array( 'alter_text' => 1, 'text' => 'link', 'make_link' => 1, 'path' => '[accession_link]', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 1, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'accession_link', 'table' => 'dbxref', 'field' => 'accession_link', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'name' => array( 'operator' => '=', 'value' => '