function bootstrap_tour_generate_machine_name in Bootstrap Tour 7
Helper function to convert a string to a machine name.
1 call to bootstrap_tour_generate_machine_name()
- bootstrap_tour_form_submit in ./
bootstrap_tour.module - Submit callback for the Bootstrap Tour create/edit form.
File
- ./
bootstrap_tour.module, line 540
Code
function bootstrap_tour_generate_machine_name($text) {
$text = preg_replace('/[^A-Za-z0-9_]+/', '_', $text);
return strtolower($text);
}