// Modules categories sort
This commit is contained in:
@@ -98,6 +98,8 @@ class AdminModulesControllerCore extends AdminController
|
||||
$this->list_modules_categories['others']['name'] = $this->l('Other Modules');
|
||||
$this->list_modules_categories['mobile']['name'] = $this->l('Mobile');
|
||||
|
||||
uasort($this->list_modules_categories, array($this, 'checkCategoriesNames'));
|
||||
|
||||
// Set Id Employee, Iso Default Country and Filter Configuration
|
||||
$this->id_employee = (int)$this->context->employee->id;
|
||||
$this->iso_default_country = $this->context->country->iso_code;
|
||||
@@ -129,6 +131,14 @@ class AdminModulesControllerCore extends AdminController
|
||||
$this->logged_on_addons = true;
|
||||
}
|
||||
|
||||
public function checkCategoriesNames($a, $b)
|
||||
{
|
||||
if ($a['name'] === $this->l('Other Modules'))
|
||||
return true;
|
||||
|
||||
return (bool)($a['name'] > $b['name']);
|
||||
}
|
||||
|
||||
public function setMedia()
|
||||
{
|
||||
parent::setMedia();
|
||||
|
||||
Reference in New Issue
Block a user