function _emaillog_system_string in Logging and alerts 6.2
Same name and namespace in other branches
- 8 emaillog/emaillog.module \_emaillog_system_string()
- 7.2 emaillog/emaillog.module \_emaillog_system_string()
- 2.0.x emaillog/emaillog.module \_emaillog_system_string()
Formats string as safe system string.
1 call to _emaillog_system_string()
- template_preprocess_emaillog in emaillog/
emaillog.module - Process variables for emaillog.tpl.php.
File
- emaillog/
emaillog.module, line 184 - Drupal Module: Email Logging and Alerts
Code
function _emaillog_system_string($string, $replacement = '_') {
return preg_replace('/[^a-z0-9]+/', $replacement, drupal_strtolower($string));
}