You are here

function encrypt_install in Encrypt 7.3

Same name and namespace in other branches
  1. 6 encrypt.install \encrypt_install()
  2. 7 encrypt.install \encrypt_install()
  3. 7.2 encrypt.install \encrypt_install()

Implements hook_install().

File

./encrypt.install, line 93
Install, update and uninstall functions for the encrypt module.

Code

function encrypt_install() {
  $t = get_t();

  // Add a default configuration.
  db_insert('encrypt_config')
    ->fields(array(
    'name' => 'default',
    'label' => $t('Default'),
    'description' => $t('The default configuration.'),
    'method' => 'default',
    'method_settings' => '',
    'provider' => 'drupal_private_key',
    'provider_settings' => '',
    'enabled' => 1,
    'created' => REQUEST_TIME,
    'changed' => REQUEST_TIME,
  ))
    ->execute();
  variable_set('encrypt_default_config', 'default');
}