-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetsatisfaction.install
More file actions
31 lines (28 loc) · 919 Bytes
/
getsatisfaction.install
File metadata and controls
31 lines (28 loc) · 919 Bytes
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
<?php
// $Id: getsatisfaction.install,v 1.1 2008/12/11 11:11:02 flevour Exp $
/**
* @file
* Installation file for Get Satisfaction module.
*/
function getsatisfaction_install() {
variable_set('getsatisfaction_visibility', 0);
// Remove tracking from all administrative pages, see http://drupal.org/node/34970.
$pages = array(
'admin',
'admin/*',
'user/*/*',
'node/add*',
'node/*/*',
);
variable_set('getsatisfaction_pages', implode("\n", $pages));
drupal_set_message(t('Get Satisfaction module is now installed. Please take a second to <a href="@url">configure it</a>.', array('@url' => url('admin/config/services/getsatisfaction'))));
}
/**
* Implementation of hook_uninstall().
*/
function getsatisfaction_uninstall() {
// remove module variables
variable_del('getsatisfaction_pages');
variable_del('getsatisfaction_name');
variable_del('getsatisfaction_visibility');
}