You are here

function _dynamicload_set_region_markers in Javascript Tools 5

Set a marker div in a given set of regions.

These divs can be used from Javascript to update regions with dynamically loaded content.

2 calls to _dynamicload_set_region_markers()
dynamicload_footer in dynamicload/dynamicload.module
Send settings to the browser.
dynamicload_load in dynamicload/dynamicload.module
Load needed files.

File

dynamicload/dynamicload.module, line 225
Enable AJAX-based loading of selected page elements.

Code

function _dynamicload_set_region_markers($regions) {
  foreach ($regions as $region) {
    drupal_set_content($region, '<div id="dynamicload-region-' . $region . '" class="dynamicload-region"></div>');
  }
}