function genpass_algorithm_modules in Generate Password 6
Same name and namespace in other branches
- 8 genpass.module \genpass_algorithm_modules()
- 7 genpass.module \genpass_algorithm_modules()
Return an array of all modules which implement hook_password.
Return value
array of module names.
2 calls to genpass_algorithm_modules()
- genpass_algorithm_module in ./
genpass.module - Return the currently activated module for generating passwords. Does some validation to make sure the variable contains a valid module name.
- genpass_form_alter in ./
genpass.module - Implementation of hook_form_alter()
File
- ./
genpass.module, line 233
Code
function genpass_algorithm_modules() {
// Fetch a list of all modules which implement the password generation hook.
// To be in this list, a module must implement a hook, and return random
// passwords as strings.
$return = array();
foreach (module_implements('password') as $module) {
$return[$module] = $module;
}
return $return;
}