function commons_normalize_name in Drupal Commons 7.3
Helper function to generate a machine name similar to the user's full name.
2 calls to commons_normalize_name()
- commons_add_user_avatar in ./
commons.install - _commons_create_demo_users in ./
commons.install_callbacks.inc - BatchAPI callback.
File
- ./
commons.install, line 480 - Install, update and uninstall functions for the Commons install profile.
Code
function commons_normalize_name($name) {
return drupal_strtolower(str_replace(' ', '_', $name));
}