You are here

function access_unpublished_install in Access unpublished 6

Implements hook_install().

File

./access_unpublished.install, line 18
Create a privatekey on install and remove the key when the module is removed. The private key can be changed in the module settings.

Code

function access_unpublished_install() {
  watchdog('access_unpublished', 'Generating default private key');
  variable_set('access_unpublished_privatekey', uniqid());
  watchdog('access_unpublished', 'Generating default query string');
  variable_set('access_unpublished_querystring', ACCESS_UNPUBLISHED_DEFAULTQUERYSTRING);
}