You are here

function _emaillog_system_string in Logging and alerts 7.2

Same name and namespace in other branches
  1. 8 emaillog/emaillog.module \_emaillog_system_string()
  2. 6.2 emaillog/emaillog.module \_emaillog_system_string()
  3. 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 212
Drupal Module: Email Logging and Alerts

Code

function _emaillog_system_string($string, $replacement = '_') {
  return preg_replace('/[^a-z0-9]+/', $replacement, drupal_strtolower($string));
}