Файл: system/controllers/groups/hooks/user_tab_show.php
Строк: 17
<?php
class onGroupsUserTabShow extends cmsAction {
public function run($profile, $tab_name){
$user = cmsUser::getInstance();
$template = cmsTemplate::getInstance();
$this->model->filterByMember($profile['id']);
$page_url = href_to('users', $profile['id'], 'groups');
$list_html = $this->renderGroupsList($page_url, 'popular');
return $template->renderInternal($this, 'profile_tab', array(
'user' => $user,
'profile' => $profile,
'html' => $list_html
));
}
}