function lassie_get_machine_name
Search API
6.x lassie.module | lassie_get_machine_name($str) |
Converts the string into a compatible "machine name" for Lassie to use.
3 calls to lassie_get_machine_name()
- lassie_check in modules/
lassie/ lassie.module - Check to see if an email needs to be sent regarding this job.
- lassie_finish in modules/
lassie/ lassie.module - Tell Lassie that we have finished the job.
- lassie_start in modules/
lassie/ lassie.module - Set a new job for Lassie to watch.
File
- modules/
lassie/ lassie.module, line 11 - This is the primary module file for the lassie module.
Code
function lassie_get_machine_name($str) {
$str = fp_get_machine_readable($str);
$str = trim(substr($str, 0, 200)); // make sure the name isn't more than 200 chars, which might cause problems.
return $str;
}