You are here

function _context_ui_block_compare in Context 5

Helper function to sort block objects by weight

2 string references to '_context_ui_block_compare'
context_ui_block_list in context_ui/context_ui.module
An alternative version of block_list() that provides any context_ui enabled blocks.
_context_ui_get_blocks in context_ui/context_ui_admin.inc
Helper function to generate a list of blocks from a specified region. If provided a context object, will generate a full list of blocks for that region distinguishing between system blocks and context-provided blocks.

File

context_ui/context_ui.module, line 686

Code

function _context_ui_block_compare($a, $b) {

  // Enabled blocks
  return $a->weight - $b->weight;
}