function genpass_add_samples in Generate Password 7
Same name and namespace in other branches
- 8 genpass.module \genpass_add_samples()
- 6 genpass.module \genpass_add_samples()
Adds some sample passwords to each module in an array.
1 call to genpass_add_samples()
- genpass_form_alter in ./
genpass.module - Implementation of hook_form_alter()
File
- ./
genpass.module, line 279
Code
function genpass_add_samples($array) {
$return = array();
foreach ($array as $module => $name) {
$return[$module] = $module . ' (' . t('examples') . ': <strong>' . htmlentities(module_invoke($module, 'password')) . '</strong>, <strong>' . htmlentities(module_invoke($module, 'password')) . '</strong>)';
}
return $return;
}