You are here

function role_export_machine_name_gen in Role Export 7

Same name and namespace in other branches
  1. 6 role_export.module \role_export_machine_name_gen()

Generates a machine_name from a role name.

2 calls to role_export_machine_name_gen()
role_export_user_role_insert in ./role_export.module
Implements hook_user_role_insert().
role_export_user_role_update in ./role_export.module
Implements hook_user_role_update().

File

./role_export.module, line 192
Role Export's primary module file.

Code

function role_export_machine_name_gen($name) {
  $mname = str_replace(' ', '_', strtolower($name));
  return $mname;
}