Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2014-06-24 10:38:02 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-06-24 11:31:58 +0400
commit51b86f2800d35c4032c4326189196021eb198dc4 (patch)
tree41d33110939aa7ae6779dbd9181d1a2123474d4c /core/ViewDataTable
parentd0c391520a0048135b93000c879e095aaf215c64 (diff)
Add ViewDataTable config property show_insights.
Diffstat (limited to 'core/ViewDataTable')
-rw-r--r--core/ViewDataTable/Config.php5
-rw-r--r--core/ViewDataTable/Manager.php4
2 files changed, 8 insertions, 1 deletions
diff --git a/core/ViewDataTable/Config.php b/core/ViewDataTable/Config.php
index 383ae043c0..8fbdf85321 100644
--- a/core/ViewDataTable/Config.php
+++ b/core/ViewDataTable/Config.php
@@ -160,6 +160,11 @@ class Config
public $show_goals = false;
/**
+ * Controls whether the 'insights' footer icon is shown.
+ */
+ public $show_insights = true;
+
+ /**
* Array property mapping DataTable column names with their internationalized names.
*
* The default value for this property is set elsewhere. It will contain translations
diff --git a/core/ViewDataTable/Manager.php b/core/ViewDataTable/Manager.php
index ce0308316b..b57638f0ed 100644
--- a/core/ViewDataTable/Manager.php
+++ b/core/ViewDataTable/Manager.php
@@ -237,7 +237,9 @@ class Manager
$graphViewIcons['buttons'] = array_filter($graphViewIcons['buttons']);
- if (!empty($insightsViewIcons['buttons'])) {
+ if (!empty($insightsViewIcons['buttons'])
+ && $view->config->show_insights
+ ) {
$result[] = $insightsViewIcons;
}