I have received a Drupal site along with database and I am trying to get it to work. When I attempt to view the page I get the following error:
Fatal error: Call to undefined function arrayColumnSort() in /var/www/blocks/left_menu.html on line 69
I then proceed to go to that location and see the code in question:
# sort children menu items by weight
$tmp_children = arrayColumnSort("weight", SORT_ASC, SORT_NUMERIC, $tmp_children);
unset($left_menu[$left_menu_id]['children']);
$left_menu[$left_menu_id]['children'] = $tmp_children;
I then go to custom functions and see the code it attempts to run:
function arrayColumnSort()
{
$n = func_num_args();
$ar = func_get_arg($n-1);
if(!is_array($ar))
return false;
for($i = 0; $i < $n-1; $i++)
$col[$i] = func_get_arg($i);
foreach($ar as $key => $val)
foreach($col as $kkey => $vval)
if(is_string($vval))
${"subar$kkey"}[$key] = $val[$vval];
$arv = array();
foreach($col as $key => $val)
$arv[] = (is_string($val) ? ${"subar$key"} : $val);
$arv[] = $ar;
call_user_func_array("array_multisort", $arv);
return $ar;
}