You are here

function _fe_block_compare in Features Extra 6

Same name and namespace in other branches
  1. 7 fe_block/fe_block.module \_fe_block_compare()

Sort blocks with "module" and "delta".

2 string references to '_fe_block_compare'
fe_block_settings_features_export_options in ./fe_block.module
Implementation of hook_features_export_options().
fe_block_settings_features_export_render in ./fe_block.module
Implementation of hook_features_export_render().

File

./fe_block.module, line 423

Code

function _fe_block_compare($a, $b) {
  $module_cmp = strcmp($a['module'], $b['module']);
  if (!empty($module_cmp)) {
    return $module_cmp;
  }
  return strcmp($a['delta'], $b['delta']);
}