1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest SelectedId in XenForo_Model_Node::getNodeOptionsArray

Discussion in 'Closed Suggestions' started by ragtek, Jun 21, 2011.

  1. ragtek

    ragtek Guest

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

         * 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)
  2. Syndol

    Syndol Guest

    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.

Share This Page