-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoogle_analytics_exclusion.admin.inc
32 lines (28 loc) · 1.09 KB
/
google_analytics_exclusion.admin.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* Main settings and review administration screen.
*/
function google_analytics_exclusion_settings_form($form, &$form_state) {
$form = array();
$form['google_analytics_exclusion_key'] = array(
'#type' => 'textfield',
'#title' => t('Keyword'),
'#default_value' => variable_get('google_analytics_exclusion_key', ''),
'#description' => t('Set a keyword variable to filter against.'),
);
$form['google_analytics_exclusion_ipv4'] = array(
'#type' => 'textarea',
'#title' => t('IPv4 Addresses'),
'#default_value' => variable_get('google_analytics_exclusion_ipv4', false),
'#description' => t('Enter in IPv4 addresses. One per line.'),
);
// $form['google_analytics_exclusion_ipv6'] = array(
// '#type' => 'textarea',
// '#title' => t('IPv6 Addresses'),
// '#default_value' => variable_get('google_analytics_exclusion_ipv6', false),
// '#description' => t('Enter in IPv6 addresses. One per line.'),
// );
// Magic function which will add submit button
// and make us free from writing a submit handler
return system_settings_form($form);
}