You are here

function views_analyze_view in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 includes/analyze.inc \views_analyze_view()
  2. 6.2 includes/analyze.inc \views_analyze_view()

Analyze a review and return the results.

Return value

An array of analyze results organized into arrays keyed by 'ok', 'warning' and 'error'.

2 calls to views_analyze_view()
drush_views_analyze in drush/views.drush.inc
Analyze all installed views.
views_ui_analyze_view_form in includes/admin.inc
Form constructor callback to display analysis information on a view.

File

includes/analyze.inc, line 22
Contains the view analyze tool code.

Code

function views_analyze_view(&$view) {
  $view
    ->init_display();
  $messages = module_invoke_all('views_analyze', $view);
  return $messages;
}