function admin_menu_handle_replacement_pattern

7.x admin.module admin_menu_handle_replacement_pattern($str)
6.x admin.module admin_menu_handle_replacement_pattern($str)
4.x admin.module admin_menu_handle_replacement_pattern($str)
5.x admin.module admin_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/admin/admin.module, line 1241
The administrative configurations for FlightPath.

Code

function admin_menu_handle_replacement_pattern($str) {

  if (!$str) {
    $str = ""; // Compat for PHP 8.2, force it to be a string if it was NULL or FALSE.  
  }

  if (strpos($str, "%DE_CATALOG_YEAR%") !== 0) {
    // It contains this replacement pattern!
    $str = str_replace("%DE_CATALOG_YEAR%", admin_get_de_catalog_year(), $str);
  }

  if (strpos($str, "%SEV_FILTER%") !== 0) {
    // It contains this replacement pattern!
    $sev_filter = (string) @$_GET ["sev_filter"];
    $str = str_replace("%SEV_FILTER%", $sev_filter, $str);
  }

  if (strpos($str, "%TYPE_FILTER%") !== 0) {
    // It contains this replacement pattern!
    $type_filter = (string) @$_GET ["type_filter"];
    $str = str_replace("%TYPE_FILTER%", $type_filter, $str);
  }


  if (strpos($str, "%PAGE%") !== 0) {
    // It contains this replacement pattern!
    $page = (string) @$_GET ["page"];
    $str = str_replace("%PAGE%", $page, $str);
  }



  return $str;
}