6.X/traits/menus.php
/**
     * Adds a new menu item to $this->spath
     *
     * This can be a real menu item or an array prepared by a module script.
     *
     * @param $v array Menu item array
     */
Adds a new menu item to $this->spath
This can be a real menu item or an array prepared by a module script.

@param $v array Menu item array
Adds a new menu item to $this - > spath This can be a real menu item or an array prepared by a module script . @param $v array Menu item array
public function add_to_spath($v)
    {
        if ($v['uri']{0} == '#') {
            return false;
        }
        foreach ($this->spath as $cv) {
            if (($cv['id'] == $v['id'])) {
                return false;
            }
        }
        $this->spath[] = $v;
        return true;
    }
public function add_to_spath ( $ v ) { if ( $ v [ 'uri' ] { 0 } == '#' ) { return false ; } foreach ( $ this -> spath as $ cv ) { if ( ( $ cv [ 'id' ] == $ v [ 'id' ] ) ) { return false ; } } $ this -> spath [ ] = $ v ; return true ; }
Adds a new menu item to $this->spath
 This can be a real menu item or an array prepared by a module script.
Adds a new menu item to $this - > spath This can be a real menu item or an array prepared by a module script .