Search code examples
phpdrupaldrupal-7

I want just to run a line of code without t()


How I can run this line of code without this t() ??

$severity_options[$severity] = t('@description', array('@description' => drupal_ucfirst($severity),

Solution

  • You only need to remove the t function and add check_plain.

    The @description variable is replaced with the drupal_ucfirst($severity), so you can only encode special characters.

    $severity_options[$severity] =  check_plain(drupal_ucfirst($severity))