You are here

function ajaxblocks_page_ajax_list in Ajax Blocks 6

Same name and namespace in other branches
  1. 7 ajaxblocks.module \ajaxblocks_page_ajax_list()

Stores AJAX block IDs temporarily to pass them from ajaxblocks_preprocess_block() to ajaxblocks_preprocess_page().

2 calls to ajaxblocks_page_ajax_list()
ajaxblocks_preprocess_block in ./ajaxblocks.module
Implements hook_preprocess_block().
ajaxblocks_preprocess_page in ./ajaxblocks.module
Implements hook_preprocess_page().

File

./ajaxblocks.module, line 327
Loads dynamic blocks on cached page for anonymous users by performing AJAX request.

Code

function ajaxblocks_page_ajax_list($block_id = NULL, $settings = array()) {
  static $ajax_blocks = array();
  if (is_null($block_id)) {
    return $ajax_blocks;
  }
  else {
    $ajax_blocks[$block_id] = $settings;
  }
}