Lack of interest SelectedId in XenForo_Model_Node::getNodeOptionsArray

  • Thread starter Thread starter ragtek
  • Start date Start date
This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.
R

ragtek

Guest
It would be great, if we could pass also an array with selectedIds to the getNodeOptionsArray method.

PHP:
    /**
     * Fetches an array suitable as source for admin template 'options' tag from nodes array
     *
     * @param array Array of nodes, including node_id, title, parent_node_id and depth keys
     * @param integer NodeId of selected node
     * @param mixed Add root as the first option, and increment all depths by 1 to show indenting.
     *     If 'true', the root node will be entitled '(root node)', alternatively, specify a string to use
     *  as the option text.
     *
     * @return array
     */
    public function getNodeOptionsArray(array $nodes, $selectedNodeId = 0, $includeRoot = false)
    {
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
I agree!
I have just been looking into creating a multiple select option, but it would be nice if this feature was available as part of the code base.
 
Top Bottom