function blank_degrees_menu_handle_replacement_pattern
Search API
7.x blank_degrees.module | blank_degrees_menu_handle_replacement_pattern($str) |
6.x blank_degrees.module | blank_degrees_menu_handle_replacement_pattern($str) |
4.x blank_degrees.module | blank_degrees_menu_handle_replacement_pattern($str) |
5.x blank_degrees.module | blank_degrees_menu_handle_replacement_pattern($str) |
This is an implementation of hook_menu_handle_replacement_pattern. It will search for and replace replacement patterns which we are aware of it in $str.
File
- modules/
blank_degrees/ blank_degrees.module, line 59
Code
function blank_degrees_menu_handle_replacement_pattern($str) {
if (strpos($str, "%BLANK_CATALOG_YEAR%") !== 0) {
// It contains this replacement pattern!
$str = str_replace("%BLANK_CATALOG_YEAR%", @$_REQUEST ["blank_catalog_year"], $str);
}
$school_id = 0;
if (isset($_REQUEST ['school_id'])) {
$school_id = intval($_REQUEST ['school_id']);
}
if (strpos($str, "%SCHOOL_ID%") !== 0) {
// It contains this replacement pattern!
$str = str_replace("%SCHOOL_ID%", $school_id, $str);
}
return $str;
}