function context_reaction_block::rebuild_needed in Context 6.3
Same name and namespace in other branches
- 6 plugins/context_reaction_block.inc \context_reaction_block::rebuild_needed()
- 7.3 plugins/context_reaction_block.inc \context_reaction_block::rebuild_needed()
Check or set whether a rebuild of the block info cache is needed.
2 calls to context_reaction_block::rebuild_needed()
- context_reaction_block::editor_form in plugins/
context_reaction_block.inc - Context editor form for blocks.
- context_reaction_block::options_form in plugins/
context_reaction_block.inc - Options form.
File
- plugins/
context_reaction_block.inc, line 394
Class
- context_reaction_block
- Expose blocks as context reactions.
Code
function rebuild_needed($set = NULL) {
if (isset($set) && $set != variable_get('context_block_rebuild_needed', FALSE)) {
variable_set('context_block_rebuild_needed', $set);
}
return (bool) variable_get('context_block_rebuild_needed', FALSE);
}