Файл: system/controllers/admin/hooks/menu_admin.php
Строк: 30
<?php
class onAdminMenuAdmin extends cmsAction {
public function run($item){
$action = $item['action'];
$menu_item_id = $item['menu_item_id'];
$result = array('url' => href_to($this->name), 'items' => false);
if ($action != 'menu'){ return $result; }
$menu = $this->getAdminMenu();
foreach($menu as $id=>$item){
if ($item['url'] == href_to($this->name)) { continue; }
$result['items'][] = array(
'id' => 'admin' . $id,
'parent_id' => $menu_item_id,
'title' => $item['title'],
'childs_count' => 0,
'url' => $item['url']
);
}
return $result;
}
}