You are here

function login_security_t in Login Security 7

Same name and namespace in other branches
  1. 6 login_security.module \login_security_t()

The performs drupal_placeholder() on variables in an array.

This option is instead of doing t() because t() can only translate static strings, not variables.

6 calls to login_security_t()
login_security_mail in ./login_security.module
Implements hook_mail().
login_security_nagios in ./login_security.module
Implements hook_nagios().
login_security_soft_block_validate in ./login_security.module
Temporarily deny validation to users with excess invalid login attempts.
login_security_validate in ./login_security.module
Implements hook_validate().
login_user_block_ip in ./login_security.module
Create a Deny entry for the IP address.

... See full list

File

./login_security.module, line 502
Login Security

Code

function login_security_t($message, $variables = array()) {
  foreach ($variables as $key => $value) {
    $variables[$key] = drupal_placeholder($value);
  }
  return strtr($message, $variables);
}