Commit 3b3592bd authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't count dashboard views in viewtype graph; add string for dashboard view type

Signed-off-by: default avatarRichard Mansfield <>
parent 49d47e43
......@@ -292,6 +292,7 @@ $string['blockcopypermission'] = 'Block copy permission';
$string['blockcopypermissiondesc'] = 'If you allow other users to copy this View, you may choose how this block will be copied';
// View types
$string['dashboard'] = 'Dashboard';
$string['profile'] = 'Profile';
$string['portfolio'] = 'Portfolio';
......@@ -787,9 +787,9 @@ function view_type_graph() {
// Draw a pie graph of views broken down by view type.
$viewtypes = get_records_sql_array('
SELECT type, COUNT(id) AS views
FROM {view}
FROM {view} WHERE type != ?
GROUP BY type',
if (count($viewtypes) > 1) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment