You are here

function spaces_dashboard_views_default_views in Spaces 5.2

Same name and namespace in other branches
  1. 5 spaces_dashboard/spaces_dashboard.module \spaces_dashboard_views_default_views()

Implementation of hook_default_views

File

spaces_dashboard/spaces_dashboard.module, line 103

Code

function spaces_dashboard_views_default_views() {
  $default_views = array(
    '_spaces_dashboard_views_group_dashboard',
    '_spaces_dashboard_views_group_directory',
    '_spaces_dashboard_views_group_my',
  );
  foreach ($default_views as $v) {
    $view = call_user_func($v);
    if (is_object($view) && $view->name) {
      $views[$view->name] = $view;
    }
  }
  return $views;
}