You are here

drupal_private_key.inc in Encrypt 7.3

Same filename and directory in other branches
  1. 7.2 plugins/key_providers/drupal_private_key.inc

File

plugins/key_providers/drupal_private_key.inc
View source
<?php

/**
 * @file
 * Plugin definition for the Drupal Private Key key provider.
 */
$plugin = encrypt_drupal_private_key_encrypt_key_providers();

/**
 * Implements MODULE_FILENAME_encrypt_key_providers().
 */
function encrypt_drupal_private_key_encrypt_key_providers() {
  return array(
    'title' => t('Drupal Private Key'),
    'description' => t("Use Drupal's private key from the database."),
    'key callback' => 'encrypt_get_drupal_private_key',
    'settings form' => NULL,
    'static key' => TRUE,
  );
}

/**
 * Callback method to return Drupal's private key.
 */
function encrypt_get_drupal_private_key() {
  return drupal_get_private_key();
}

Functions

Namesort descending Description
encrypt_drupal_private_key_encrypt_key_providers Implements MODULE_FILENAME_encrypt_key_providers().
encrypt_get_drupal_private_key Callback method to return Drupal's private key.