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 60
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);
}
return $str;
}