You are here

static function context_reaction_block::block_sort in Context 7.3

Same name and namespace in other branches
  1. 6.3 plugins/context_reaction_block.inc \context_reaction_block::block_sort()
  2. 6 plugins/context_reaction_block.inc \context_reaction_block::block_sort()

Sort callback.

File

plugins/context_reaction_block.inc, line 587

Class

context_reaction_block
Expose blocks as context reactions.

Code

static function block_sort($a, $b) {
  return $a->weight - $b->weight;
}