You are here

function casetracker_views_default_views in Case Tracker 7

Same name and namespace in other branches
  1. 6 casetracker.views_default.inc \casetracker_views_default_views()
  2. 7.2 views/casetracker.views_default.inc \casetracker_views_default_views()

Implements hook_views_default_views().

File

./casetracker.views_default.inc, line 6

Code

function casetracker_views_default_views() {
  $list = array(
    'casetracker_project_options',
    'casetracker_project_cases',
    'casetracker_assignee_options',
  );
  $views = array();
  foreach ($list as $view_name) {
    $view = call_user_func('_view_' . $view_name);
    $views[$view->name] = $view;
  }
  return $views;
}