function _homebox_compare_block_subject in Homebox 6
Same name and namespace in other branches
- 6.3 homebox.module \_homebox_compare_block_subject()
- 6.2 homebox.module \_homebox_compare_block_subject()
- 7.3 homebox.module \_homebox_compare_block_subject()
- 7.2 homebox.module \_homebox_compare_block_subject()
Helper function to sort blocks by subject alpha asc
1 string reference to '_homebox_compare_block_subject'
- homebox_list_available_blocks in ./
homebox.module - List available blocks to let user show/hide blocks
File
- ./
homebox.module, line 491 - Home box main file, takes care of global functions settings constants, etc.
Code
function _homebox_compare_block_subject($a, $b) {
if ($a['subject'] == $b['subject']) {
return 0;
}
return $a['subject'] < $b['subject'] ? -1 : 1;
}