You are here

function _tft_array_weight_sort in Taxonomy File Tree 7

Same name and namespace in other branches
  1. 7.2 tft.module \_tft_array_weight_sort()
1 string reference to '_tft_array_weight_sort'
tft_folder_content in ./tft.module
Loads the given folder content.

File

./tft.module, line 1445
Module hooks.

Code

function _tft_array_weight_sort($a, $b) {
  if ($a['weight'] != $b['weight']) {
    return $a['weight'] < $b['weight'] ? -1 : 1;
  }
  return 0;
}