code/control/Users_Account_Controller.php
public function getAccountMenu()
    {
        $menu = ArrayList::create();
        
        $curr_action = $this->request->param("Action");

        $menu->add(
            ArrayData::create(
                array(
                "ID"    => 0,
                "Title" => _t('Users.PROFILESUMMARY', "Profile Summary"),
                "Link"  => $this->Link(),
                "LinkingMode" => (!$curr_action) ? "current" : "link"
                )
            )
        );

        $menu->add(
            ArrayData::create(
                array(
                "ID"    => 10,
                "Title" => _t('Users.EDITDETAILS', "Edit account details"),
                "Link"  => $this->Link("edit"),
                "LinkingMode" => ($curr_action == "edit") ? "current" : "link"
                )
            )
        );

        $menu->add(
            ArrayData::create(
                array(
                "ID"    => 30,
                "Title" => _t('Users.CHANGEPASSWORD', "Change password"),
                "Link"  => $this->Link("changepassword"),
                "LinkingMode" => ($curr_action == "changepassword") ? "current" : "link"
                )
            )
        );

        $this->extend("updateAccountMenu", $menu);

        return $menu->sort("ID", "ASC");
    }
public function getAccountMenu()
    {
        $menu = ArrayList::create();
        
        $curr_action = $this->request->param("Action");

        $menu->add(
            ArrayData::create(
                array(
                "ID"    => 0,
                "Title" => _t('Users.PROFILESUMMARY', "Profile Summary"),
                "Link"  => $this->Link(),
                "LinkingMode" => (!$curr_action) ? "current" : "link"
                )
            )
        );

        $menu->add(
            ArrayData::create(
                array(
                "ID"    => 10,
                "Title" => _t('Users.EDITDETAILS', "Edit account details"),
                "Link"  => $this->Link("edit"),
                "LinkingMode" => ($curr_action == "edit") ? "current" : "link"
                )
            )
        );

        $menu->add(
            ArrayData::create(
                array(
                "ID"    => 30,
                "Title" => _t('Users.CHANGEPASSWORD', "Change password"),
                "Link"  => $this->Link("changepassword"),
                "LinkingMode" => ($curr_action == "changepassword") ? "current" : "link"
                )
            )
        );

        $this->extend("updateAccountMenu", $menu);

        return $menu->sort("ID", "ASC");
    }
public function getAccountMenu ( ) { $ menu = ArrayList :: create ( ) ; $ curr_action = $ this -> request -> param ( "Action" ) ; $ menu -> add ( ArrayData :: create ( array ( "ID" => 0 , "Title" => _t ( 'Users.PROFILESUMMARY' , "Profile Summary" ) , "Link" => $ this -> Link ( ) , "LinkingMode" => ( ! $ curr_action ) ? "current" : "link" ) ) ) ; $ menu -> add ( ArrayData :: create ( array ( "ID" => 10 , "Title" => _t ( 'Users.EDITDETAILS' , "Edit account details" ) , "Link" => $ this -> Link ( "edit" ) , "LinkingMode" => ( $ curr_action == "edit" ) ? "current" : "link" ) ) ) ; $ menu -> add ( ArrayData :: create ( array ( "ID" => 30 , "Title" => _t ( 'Users.CHANGEPASSWORD' , "Change password" ) , "Link" => $ this -> Link ( "changepassword" ) , "LinkingMode" => ( $ curr_action == "changepassword" ) ? "current" : "link" ) ) ) ; $ this -> extend ( "updateAccountMenu" , $ menu ) ; return $ menu -> sort ( "ID" , "ASC" ) ; }
Return a list of nav items for managing a users profile. You can add new
items to this menu using the "updateAccountMenu" extension

@return ArrayList
Return a list of nav items for managing a users profile . You can add new items to this menu using the updateAccountMenu extension