function hook_encrypt_method_info in Encrypt 6
Same name and namespace in other branches
- 7 encrypt.api.php \hook_encrypt_method_info()
Encrypt Method Info
This hook informs Encrypt about the methods that are provided by the module.
Return value
An associative array with the following top level key being the id of the method, then an associative array of:
- "title": Translated title of method, used for selecting in UI.
- "description": Translated description of method, used for selecting in UI.
- "callback": PHP encryption function. The actual function shoud have a similar signature: encrypt_encrypt_none($op = 'encrypt', $text = '', $options = array()).
1 function implements hook_encrypt_method_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- encrypt_encrypt_method_info in includes/
encrypt.encrypt.inc - Implementation of encrypt_method_info().
1 invocation of hook_encrypt_method_info()
- encrypt_get_methods in includes/
encrypt.crypt.inc - Get Encryption Methods
File
- ./
encrypt.api.php, line 46 - Hooks provided by the encrypt suite of modules.
Code
function hook_encrypt_method_info() {
$methods = array();
$methods['none'] = array(
'title' => t('None'),
'description' => t('This uses no encryption. It is not suggested to use this.'),
'callback' => 'encrypt_encrypt_none',
);
return $methods;
}