You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: matomo.admin.inc
+25-42Lines changed: 25 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -90,52 +90,36 @@ function matomo_admin_settings_form($form_state) {
90
90
);
91
91
92
92
// Page specific visibility configurations.
93
-
$php_access = user_access('use php for matomo tracking visibility');
94
-
$visibility = $config->get('visibility_pages');
95
-
$pages = $config->get('pages');
96
-
97
93
$form['tracking']['page_vis_settings'] = array(
98
94
'#type' => 'fieldset',
99
95
'#title' => t('Pages'),
100
96
'#collapsible' => TRUE,
101
97
'#collapsed' => TRUE,
102
98
);
99
+
$options = array(
100
+
t('Every page except the listed pages'),
101
+
t('The listed pages only')
102
+
);
103
+
$description = t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", array(
$description = t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", array('%blog' => 'blog', '%blog-wildcard' => 'blog/*', '%front' => '<front>'));
115
-
116
-
if (module_exists('php') && $php_access) {
117
-
$options[] = t('Pages on which this PHP code returns <code>TRUE</code> (experts only)');
118
-
$title = t('Pages or PHP code');
119
-
$description .= '' . t('If the PHP option is chosen, enter PHP code between %php. Note that executing incorrect PHP code can break your Backdrop site.', array('%php' => '<?php ?>'));
0 commit comments