function t
Search API
| 7.x misc.inc | t($str, $vars = array()) | 
| 6.x misc.inc | t($str, $vars = array()) | 
| 4.x misc.inc | t($str, $vars = array()) | 
| 5.x misc.inc | t($str, $vars = array()) | 
Eventually, this function will be used to translate strings. For now, just pass through. Allows variable replacements. Use like this: t("@name's blob", array("@name" => "Richard")); or simply t("My blob"); if you don't need replacements.
Not implimented yet.
187 calls to t()
- admin_add_degree_form in modules/admin/ admin.degrees.inc 
- This form lets the user add a degree to the database.
- admin_add_degree_form_submit in modules/admin/ admin.degrees.inc 
- Submit handler for the add_degree_form.
- admin_advising_settings_form in modules/admin/ admin.module 
- This is a systems settings form, which lets the user edit advising variabled for FlightPath.
- admin_apply_draft_changes_form in modules/admin/ admin.module 
- This form lets the user apply draft changes (if they can supply the passcode)
- admin_apply_draft_changes_form_submit in modules/admin/ admin.module 
- Handles the actual moving of draft courses into production.
File
- includes/misc.inc, line 808 
- This file contains misc functions for FlightPath
Code
function t($str, $vars = array()) {
  if (is_array($vars) && count($vars) > 0) {
    foreach ($vars as $var => $val) {
      // If var begins with %, it means we want to italicize the val.
      if (strstr($var, "%")) {
        $val = "<em>$val</em>";
      }
      $str = str_replace($var, $val, $str);
    }
  }
  return $str;
}
