You are here

function _encrypt_phpseclib_dependencies in Encrypt 7.3

Same name and namespace in other branches
  1. 7.2 plugins/encryption_methods/phpseclib.inc \_encrypt_phpseclib_dependencies()

Callback to see if the phpseclib library is present.

1 string reference to '_encrypt_phpseclib_dependencies'
encrypt_phpseclib_encrypt_encryption_methods in plugins/encryption_methods/phpseclib.inc
Implements MODULE_FILENAME_encrypt_encryption_methods().

File

plugins/encryption_methods/phpseclib.inc, line 60

Code

function _encrypt_phpseclib_dependencies() {
  $errors = array();
  if (!module_exists('libraries')) {
    $errors[] = t('You must download and enable the <a href="http://drupal.org/project/libraries">Libraries API</a> module.');
  }
  if (!file_exists('sites/all/libraries/phpseclib') && !file_exists(conf_path() . '/phpseclib')) {
    $errors[] = t('You must download the <a href="http://phpseclib.sourceforge.net/">phpseclib</a> library and place it in either sites/all/libraries or sites/yourdomain/libraries.');
  }
  return $errors;
}