public function onSettingDisplay(AnEvent $event)
    {
        $tabs = $event->tabs;
        $viewer = get_viewer();

        if ($viewer->admin() || $viewer->eql($this->getItem())) {
            $tabs->insert('account', array('label' => AnTranslator::_('COM-PEOPLE-SETTING-TAB-ACCOUNT')));
        }
    }
public function onSettingDisplay(AnEvent $event)
    {
        $tabs = $event->tabs;
        $viewer = get_viewer();

        if ($viewer->admin() || $viewer->eql($this->getItem())) {
            $tabs->insert('account', array('label' => AnTranslator::_('COM-PEOPLE-SETTING-TAB-ACCOUNT')));
        }
    }
public function onSettingDisplay ( AnEvent $ event ) { $ tabs = $ event -> tabs ; $ viewer = get_viewer ( ) ; if ( $ viewer -> admin ( ) || $ viewer -> eql ( $ this -> getItem ( ) ) ) { $ tabs -> insert ( 'account' , array ( 'label' => AnTranslator :: _ ( 'COM-PEOPLE-SETTING-TAB-ACCOUNT' ) ) ) ; } }
Called before the setting page is displayed.

@param AnEvent $event
Called before the setting page is displayed .