function hook_alter_term_id_prior_to_description

This hook is called right before retrieving the plain English description for a term_id. It allows modules to change the term_id.

Notice that term_id and $bool_abbreviate are passed by reference!

File

includes/hook.api.php, line 194
Lists all available hooks within FlightPath's core code.

Code

function hook_alter_term_id_prior_to_description(&$term_id, &$bool_abbreviate, $school_id = 0) {
  if ($term_id == "201740") {
    // change term_id to something else.
    $term_id = "555570";
  }
}