You are here

function answers_views_default_views in Answers 7.4

Same name and namespace in other branches
  1. 6.2 answers.views_default.inc \answers_views_default_views()
  2. 6 answers.views_default.inc \answers_views_default_views()
  3. 7 answers.views_default.inc \answers_views_default_views()
  4. 7.2 answers.views_default.inc \answers_views_default_views()
  5. 7.3 answers.views_default.inc \answers_views_default_views()

Implements hook_views_default_views().

Http://api.drupal.org/api/views/views.api.php/function/hook_views_default_views/7

File

./answers.views_default.inc, line 13
Views defaults for the answers module.

Code

function answers_views_default_views() {
  $export = array();

  /* Add the questions view */
  $view = new view();
  _answers_set_questions_view($view);
  $export[$view->name] = $view;

  /* Add the question_answers view */
  $view = new view();
  _answers_set_question_answers_view($view);
  $export[$view->name] = $view;
  return $export;
}