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 1126
The administrative configurations for FlightPath.

Code

function admin_menu_handle_replacement_pattern($str) {

  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!
    $str = str_replace("%SEV_FILTER%", @$_GET ["sev_filter"], $str);
  }

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


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



  return $str;
}