function tripal_stock_views_default_views

2.x tripal_stock.views_default.inc tripal_stock_views_default_views()
3.x tripal_stock.views_default.inc tripal_stock_views_default_views()
1.x tripal_stock.views.inc tripal_stock_views_default_views()

Implements hook_views_default_views().

Related topics

1 call to tripal_stock_views_default_views()
tripal_stock_disable in tripal_stock/tripal_stock.install
Implements hook_disable(). Disable default views when module is disabled

File

tripal_stock/tripal_stock.views_default.inc, line 12
Describes stock default views.

Code

function tripal_stock_views_default_views() {
  $views = array();

  // User View ("Search Biological Content")
  // Remember, if you change the name/path of this view,
  // you also want to change it's description in tripal_stock_search_biological_data_views()
  $view = tripal_stock_defaultvalue_user_stocks();
  $view = tripal_make_view_compatible_with_external($view);
  $views[$view->name] = $view;

  // Admin view
  $view = tripal_stock_defaultview_admin_stocks();
  $view = tripal_make_view_compatible_with_external($view);
  $views[$view->name] = $view;

  return $views;
}