You are here

function overlay_request_refresh in Drupal 7

Requests that the parent window refreshes a particular page region.

Parameters

$region: The name of the page region to refresh. The parent window will trigger a refresh of this region on the next page load.

See also

overlay_trigger_refresh()

Drupal.overlay.refreshRegions()

1 call to overlay_request_refresh()
overlay_exit in modules/overlay/overlay.module
Implements hook_exit().

File

modules/overlay/overlay.module, line 970
Displays the Drupal administration interface in an overlay.

Code

function overlay_request_refresh($region) {
  $class = drupal_region_class($region);
  $_SESSION['overlay_regions_to_refresh'][] = array(
    $class => $region,
  );
}