You are here

function overlay_paths_get_overlay_patterns in Overlay Paths 7

Get a pattern of non-administrative overlay paths.

3 calls to overlay_paths_get_overlay_patterns()
overlay_paths_custom_theme in ./overlay_paths.module
Implements hook_custom_theme().
overlay_paths_is_overlay in ./overlay_paths.module
Return whether $path should be rendered in an overlay or not.
overlay_paths_overlay_parent_initialize in ./overlay_paths.module
Implements hook_overlay_parent_initialize().

File

./overlay_paths.module, line 22
The overlay paths module.

Code

function overlay_paths_get_overlay_patterns($mode = TRUE) {
  $patterns =& drupal_static(__FUNCTION__);
  if (!isset($patterns[$mode])) {
    $paths = overlay_paths_admin_paths($mode);
    $patterns[$mode] = implode("\n", array_keys($paths));
  }
  return $patterns[$mode];
}