}
// Not sure how to make the 'callback' use $this-> or this could get pulled out
- function orderSort ($a, $b) { return (strcmp ($a['order'],$b['order'])); }
+ // function orderSort ($a, $b) { return (strcmp ($a['order'],$b['order'])); }
// In case we want to treat the widget data before sending it to the viewfile.
// May be able to avoid sending the (huge) Config array to the view
$addons[$a['slug']]['widgetData'] = $this->queryWidgetLists($addons[$a['slug']]['widgetData']);
// Sort the component list based on the 'order'
- uasort($addons[$a['slug']]['widgetData']['components'], 'orderSort');
+ uasort($addons[$a['slug']]['widgetData']['components'], array($this, 'orderSort') ) ;
} else {
echo "<br>" . $a['slug'] . " has no filter called " . $a['slug'] . "-dashboard-widget";
}
}
- // public function orderSort ($a, $b) { return (strcmp ($a['order'],$b['order'])); }
+ public function orderSort ($a, $b) { return (strcmp ($a['order'],$b['order'])); }
public function queryWidgetLists( &$widgetData = false ) {