You are here

private function context_reaction_block::context_block_ajax_rendering_allowed in Context 6.3

Same name and namespace in other branches
  1. 7.3 plugins/context_reaction_block.inc \context_reaction_block::context_block_ajax_rendering_allowed()

Allow modules to selectively allow ajax rendering of a specific block

1 call to context_reaction_block::context_block_ajax_rendering_allowed()
context_reaction_block::render_ajax in plugins/context_reaction_block.inc
Block renderer for AJAX requests. Triggered when $_GET['context_block'] is set. See ->execute() for how this is called.

File

plugins/context_reaction_block.inc, line 583

Class

context_reaction_block
Expose blocks as context reactions.

Code

private function context_block_ajax_rendering_allowed($bid) {
  $allowed = FALSE;
  foreach (module_invoke_all('context_allow_ajax_block_access', $bid) as $module_allow) {
    $allowed = $allow || $module_allow;
    if ($allowed) {
      break;
    }
  }
  return $allowed;
}