function ajaxblocks_page_ajax_list in Ajax Blocks 7
Same name and namespace in other branches
- 6 ajaxblocks.module \ajaxblocks_page_ajax_list()
Stores AJAX block IDs temporarily to pass them from ajaxblocks_preprocess_block() to ajaxblocks_preprocess_html().
2 calls to ajaxblocks_page_ajax_list()
- ajaxblocks_preprocess_block in ./
ajaxblocks.module - Implements hook_preprocess_block().
- ajaxblocks_preprocess_html in ./
ajaxblocks.module - Implements hook_preprocess_html().
File
- ./
ajaxblocks.module, line 324 - 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)) {
$ajax_blocks[$block_id] = $settings;
}
return $ajax_blocks;
}