You are here

function genpass_add_samples in Generate Password 6

Same name and namespace in other branches
  1. 8 genpass.module \genpass_add_samples()
  2. 7 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 266

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;
}