You are here

function _context_prefix_get_normal_path in Context 5

Taken from i18n

1 call to _context_prefix_get_normal_path()
_context_prefix_init in context_prefix/context_prefix.module
Helper function to initialize, parse + set prefixed contexts.

File

context_prefix/context_prefix.module, line 331

Code

function _context_prefix_get_normal_path($path) {

  // If bootstrap, drupal_lookup_path is not defined
  if (!function_exists('drupal_get_headers')) {
    return $path;
  }
  elseif ($alias = drupal_lookup_path('source', $path)) {
    return $alias;
  }
  else {
    return $path;
  }
}