function tripal_project_views_default_views
2.x tripal_project.views_default.inc | tripal_project_views_default_views() |
3.x tripal_project.views_default.inc | tripal_project_views_default_views() |
1.x tripal_project.views.inc | tripal_project_views_default_views() |
Implements hook_views_default_views().
Related topics
1 call to tripal_project_views_default_views()
- tripal_project_disable in legacy/
tripal_project/ tripal_project.install - Implements hook_disable(). Disable default views when module is disabled
File
- legacy/
tripal_project/ tripal_project.views_default.inc, line 12 - Project Default Views
Code
function tripal_project_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_project_search_biological_data_views()
$view = tripal_project_defaultvalue_user_projects();
$view = tripal_make_view_compatible_with_external($view);
$views[$view->name] = $view;
// Admin view
$view = tripal_project_defaultview_admin_projects();
$view = tripal_make_view_compatible_with_external($view);
$views[$view->name] = $view;
return $views;
}