function tripal_phylogeny_defaultvalue_user_phylotrees

2.x tripal_phylogeny.views_default.inc tripal_phylogeny_defaultvalue_user_phylotrees()
3.x tripal_phylogeny.views_default.inc tripal_phylogeny_defaultvalue_user_phylotrees()

Defines the phylotree user search default view.

Related topics

1 call to tripal_phylogeny_defaultvalue_user_phylotrees()
tripal_phylogeny_views_default_views in legacy/tripal_phylogeny/tripal_phylogeny.views_default.inc
Implements hook_views_default_views().

File

legacy/tripal_phylogeny/tripal_phylogeny.views_default.inc, line 162
Describe default phylotree views

Code

function tripal_phylogeny_defaultvalue_user_phylotrees() {

  $view = new view();
  $view->name = 'tripal_phylogeny_user_phylotree';
  $view->description = 'Allows users to search phylotree data';
  $view->tag = 'tripal search';
  $view->base_table = 'phylotree_count';
  $view->human_name = 'Phylogeny User Search';
  $view->core = 0;
  $view->api_version = '3.0';
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

  /* Display: phylotrees_all */
  $handler = $view->new_display('default', 'phylotrees_all', 'default');
  $handler->display->display_options['title'] = 'Phylogeny User Search';
  $handler->display->display_options['use_more_always'] = FALSE;
  $handler->display->display_options['access']['type'] = 'perm';
  $handler->display->display_options['access']['perm'] = 'access chado_phylotree content';
  $handler->display->display_options['cache']['type'] = 'none';
  $handler->display->display_options['query']['type'] = 'views_query';
  $handler->display->display_options['exposed_form']['type'] = 'basic';
  $handler->display->display_options['pager']['type'] = 'full';
  $handler->display->display_options['pager']['options']['items_per_page'] = '15';
  $handler->display->display_options['pager']['options']['offset'] = '0';
  $handler->display->display_options['pager']['options']['id'] = '0';
  $handler->display->display_options['pager']['options']['quantity'] = '9';
  $handler->display->display_options['style_plugin'] = 'table';
  /* Header: Global: Text area */
  $handler->display->display_options['header']['area']['id'] = 'area';
  $handler->display->display_options['header']['area']['table'] = 'views';
  $handler->display->display_options['header']['area']['field'] = 'area';
  $handler->display->display_options['header']['area']['empty'] = TRUE;
  $handler->display->display_options['header']['area']['content'] = 'Search for a gene family by submitting annotation terms, PFAM IDs, or GO terms in the "Tree Description" field (e.g.cytochrome, IPR008914, homeobox leucine zipper, or GO:0003677) ... or by "Family ID" (e.g. 54689426; these IDs correspond to the Phytozome v10 gene families).
';
  $handler->display->display_options['header']['area']['format'] = 'filtered_html';
  /* Header: Global: Result summary */
  $handler->display->display_options['header']['result']['id'] = 'result';
  $handler->display->display_options['header']['result']['table'] = 'views';
  $handler->display->display_options['header']['result']['field'] = 'result';
  /* Footer: Global: Result summary */
  $handler->display->display_options['footer']['result']['id'] = 'result';
  $handler->display->display_options['footer']['result']['table'] = 'views';
  $handler->display->display_options['footer']['result']['field'] = 'result';
  $handler->display->display_options['footer']['result']['content'] = 'Displaying @start - @end of @total records found.';
  /* Field: phylotree_count: Family ID */
  $handler->display->display_options['fields']['phylotree_name']['id'] = 'phylotree_name';
  $handler->display->display_options['fields']['phylotree_name']['table'] = 'phylotree_count';
  $handler->display->display_options['fields']['phylotree_name']['field'] = 'phylotree_name';
  /* Field: phylotree_count: Description */
  $handler->display->display_options['fields']['phylotree_comment']['id'] = 'phylotree_comment';
  $handler->display->display_options['fields']['phylotree_comment']['table'] = 'phylotree_count';
  $handler->display->display_options['fields']['phylotree_comment']['field'] = 'phylotree_comment';
  /* Field: phylotree_count: Total count */
  $handler->display->display_options['fields']['total_count']['id'] = 'total_count';
  $handler->display->display_options['fields']['total_count']['table'] = 'phylotree_count';
  $handler->display->display_options['fields']['total_count']['field'] = 'total_count';
  /* Filter criterion: phylotree_count: Family ID */
  $handler->display->display_options['filters']['phylotree_name']['id'] = 'phylotree_name';
  $handler->display->display_options['filters']['phylotree_name']['table'] = 'phylotree_count';
  $handler->display->display_options['filters']['phylotree_name']['field'] = 'phylotree_name';
  $handler->display->display_options['filters']['phylotree_name']['exposed'] = TRUE;
  $handler->display->display_options['filters']['phylotree_name']['expose']['operator_id'] = 'phylotree_name_op';
  $handler->display->display_options['filters']['phylotree_name']['expose']['label'] = 'Family ID';
  $handler->display->display_options['filters']['phylotree_name']['expose']['use_operator'] = TRUE;
  $handler->display->display_options['filters']['phylotree_name']['expose']['operator'] = 'phylotree_name_op';
  $handler->display->display_options['filters']['phylotree_name']['expose']['identifier'] = 'phylotree_name';
  $handler->display->display_options['filters']['phylotree_name']['expose']['remember_roles'] = array(
    2 => '2',
    1 => 0,
    4 => 0,
  );
  $handler->display->display_options['filters']['phylotree_name']['max_length'] = '40';
  /* Filter criterion: phylotree_count: Description */
  $handler->display->display_options['filters']['phylotree_comment']['id'] = 'phylotree_comment';
  $handler->display->display_options['filters']['phylotree_comment']['table'] = 'phylotree_count';
  $handler->display->display_options['filters']['phylotree_comment']['field'] = 'phylotree_comment';
  $handler->display->display_options['filters']['phylotree_comment']['operator'] = 'allwords';
  $handler->display->display_options['filters']['phylotree_comment']['exposed'] = TRUE;
  $handler->display->display_options['filters']['phylotree_comment']['expose']['operator_id'] = 'phylotree_comment_op';
  $handler->display->display_options['filters']['phylotree_comment']['expose']['label'] = 'Tree Description';
  $handler->display->display_options['filters']['phylotree_comment']['expose']['use_operator'] = TRUE;
  $handler->display->display_options['filters']['phylotree_comment']['expose']['operator'] = 'phylotree_comment_op';
  $handler->display->display_options['filters']['phylotree_comment']['expose']['identifier'] = 'phylotree_comment';
  $handler->display->display_options['filters']['phylotree_comment']['expose']['remember_roles'] = array(
    2 => '2',
    1 => 0,
    4 => 0,
  );
  $handler->display->display_options['filters']['phylotree_comment']['max_length'] = '40';
  /* Filter criterion: phylotree_count: Total count */
  $handler->display->display_options['filters']['total_count']['id'] = 'total_count';
  $handler->display->display_options['filters']['total_count']['table'] = 'phylotree_count';
  $handler->display->display_options['filters']['total_count']['field'] = 'total_count';
  $handler->display->display_options['filters']['total_count']['exposed'] = TRUE;
  $handler->display->display_options['filters']['total_count']['expose']['operator_id'] = 'total_count_op';
  $handler->display->display_options['filters']['total_count']['expose']['label'] = 'Total count';
  $handler->display->display_options['filters']['total_count']['expose']['use_operator'] = TRUE;
  $handler->display->display_options['filters']['total_count']['expose']['operator'] = 'total_count_op';
  $handler->display->display_options['filters']['total_count']['expose']['identifier'] = 'total_count';
  $handler->display->display_options['filters']['total_count']['expose']['remember_roles'] = array(
    2 => '2',
    1 => 0,
    4 => 0,
  );

  /* Display: Phylogeny */
  $handler = $view->new_display('page', 'Phylogeny', 'page');
  $handler->display->display_options['path'] = 'chado/phylotree';
  $handler->display->display_options['menu']['type'] = 'normal';
  $handler->display->display_options['menu']['title'] = 'Phylogeny';
  $handler->display->display_options['menu']['description'] = 'Gene trees, species trees, etc.';
  $handler->display->display_options['menu']['weight'] = '-10';

  return $view;
}