function auto_username_clean_token_values in Automatic User Names 6
Same name and namespace in other branches
- 5 auto_username.module \auto_username_clean_token_values()
- 7 auto_username.module \auto_username_clean_token_values()
Cleans tokens so they are PHP-friendly.
This function is largely stolen from pathauto.
Parameters
$values: An array of token values that need to be "cleaned" for use in the URL.
1 call to auto_username_clean_token_values()
- auto_username_get_placeholders in ./
auto_username.module - Get the placeholders to use for string translation.
File
- ./
auto_username.module, line 228
Code
function auto_username_clean_token_values($full) {
foreach ($full->values as $key => $value) {
$full->values[$key] = auto_username_cleanstring($value, FALSE);
}
return $full->values;
}