array( 'path' => drupal_get_path('module', 'tripal_cv') . '/views/handlers', ), 'handlers' => array( 'views_handler_field_tf_boolean' => array( 'parent' => 'views_handler_field', ), ), ); } /** * * @ingroup tripal_cv_views */ function tripal_cv_views_default_views() { $views = array(); // Main default view // List all cvterms based on cv $view = new view; $view->name = 'all_cvterms'; $view->description = 'A listing of all controlled vocabulary terms filtered by controlled vocabulary'; $view->tag = 'chado'; $view->view_php = ''; $view->base_table = 'cvterm'; $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' => 'Name', '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' => 'cvterm', 'field' => 'name', 'relationship' => 'none', ), 'definition' => array( 'label' => 'Definition', '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' => 'definition', 'table' => 'cvterm', 'field' => 'definition', 'relationship' => 'none', ), 'is_obsolete' => array( 'label' => 'Is Obsolete', '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, 'type' => 'yes-no', 'not' => 0, 'exclude' => 0, 'id' => 'is_obsolete', 'table' => 'cvterm', 'field' => 'is_obsolete', 'relationship' => 'none', ), 'is_relationshiptype' => array( 'label' => 'Is Relationship', '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, 'type' => 'yes-no', 'not' => 0, 'exclude' => 0, 'id' => 'is_relationshiptype', 'table' => 'cvterm', 'field' => 'is_relationshiptype', 'relationship' => 'none', ), 'accession_link' => array( 'label' => 'Accession Link', '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_link', 'table' => 'dbxref', 'field' => 'accession_link', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'name' => array( 'operator' => '=', 'value' => '