You are here

function encrypt_initialize in Encrypt 7

Same name and namespace in other branches
  1. 6 encrypt.module \encrypt_initialize()

Initilize Encrypt

Get necessary includes.

3 calls to encrypt_initialize()
decrypt in ./encrypt.module
Decrypt
encrypt in ./encrypt.module
Encrypt
encrypt_admin_settings in includes/encrypt.admin.inc
Menu callback; displays the encrypt module settings page.

File

./encrypt.module, line 118
Main Encrypt Drupal File

Code

function encrypt_initialize() {
  module_load_include('inc', 'encrypt', 'includes/encrypt.crypt');

  // Include any files that modules want to include
  // TODO: Some sort of version checking
  foreach (module_implements('encrypt_api') as $module) {
    $info = module_invoke($module, 'encrypt_api');
    if (is_array($info) && !empty($info['file'])) {
      require_once $info['file'];
    }
  }
}