@@ -101,7 +18,7 @@ function views_ui_views_analyze($view) {
$ret=array();
// Check for something other than the default display:
if(count($view->display)<2){
$ret[]=views_ui_analysis(t('This view has only a default display and therefore will not be placed anywhere on your site; perhaps you want to add a page or a block display.'),'warning');
$ret[]=Analyzer::formatMessage(t('This view has only a default display and therefore will not be placed anywhere on your site; perhaps you want to add a page or a block display.'),'warning');
}
// You can give a page display the same path as an alias existing in the
// system, so the alias will not work anymore. Report this to the user,
...
...
@@ -113,7 +30,7 @@ function views_ui_views_analyze($view) {
$ret[]=views_ui_analysis(t('You have configured display %display with a path which is an path alias as well. This might lead to unwanted effects so better use an internal path.',array('%display'=>$display->display_title)),'warning');
$ret[]=Analyzer::formatMessage(t('You have configured display %display with a path which is an path alias as well. This might lead to unwanted effects so better use an internal path.',array('%display'=>$display->display_title)),'warning');
$ret[]=views_ui_analysis(t('Some roles lack permission to access content, but display %display has no access control.',array('%display'=>$display->display_title)),'warning');
$ret[]=Analyzer::formatMessage(t('Some roles lack permission to access content, but display %display has no access control.',array('%display'=>$display->display_title)),'warning');
@@ -737,7 +739,7 @@ function node_views_analyze($view) {
continue2;
}
}
$ret[]=views_ui_analysis(t('Display %display has no access control but does not contain a filter for published nodes.',array('%display'=>$display->display_title)),'warning');
$ret[]=Analyzer::formatMessage(t('Display %display has no access control but does not contain a filter for published nodes.',array('%display'=>$display->display_title)),'warning');
}
}
}
...
...
@@ -745,7 +747,7 @@ function node_views_analyze($view) {
$ret[]=views_ui_analysis(t('Display %display has set node/% as path. This will not produce what you want. If you want to have multiple versions of the node view, use panels.',array('%display'=>$display->display_title)),'warning');
$ret[]=Analyzer::formatMessage(t('Display %display has set node/% as path. This will not produce what you want. If you want to have multiple versions of the node view, use panels.',array('%display'=>$display->display_title)),'warning');