function encrypt_help in Encrypt 7.2
Same name and namespace in other branches
- 6 encrypt.module \encrypt_help()
- 7.3 encrypt.module \encrypt_help()
- 7 encrypt.module \encrypt_help()
Implements hook_help().
File
- ./
encrypt.module, line 26 - Main Encrypt Drupal File.
Code
function encrypt_help($path, $arg) {
switch ($path) {
case 'admin/help#encrypt':
$output = '<p>' . t("The encrypt module Provides an API for two-way encryption. Drupal has no native way to do two-way encryption. PHP's ability to do two-way encryption is a little more involved than most people care to get into. This module provides an easy way to encrypt() and decrypt().") . '</p>';
if (!function_exists('mcrypt_encrypt')) {
$output .= '<p>' . t('Mcrypt is currently not installed or configured properly on your server. If you would like to use the "Mcrypt AES (CBC Mode)" method for encryption, follow the instructions for <a href="http://www.php.net/manual/en/mcrypt.setup.php">installing Mcrypt</a>.') . '</p>';
}
if (module_exists('advanced_help_hint')) {
$output .= advanced_help_hint_docs('encrypt', 'https://www.drupal.org/docs/7/modules/encrypt-documentation', TRUE);
}
else {
$output .= t('<p>Install and enable <a href="https://www.drupal.org/project/advanced_help_hint"><strong>Advanced Help Hint</strong></a> to get links to more help here.</p>');
}
return $output;
}
}