SproutCMS

This is the code documentation for the SproutCMS project

function dropdownTree()

Generates a dropdown selection menu from a Treenode and its children

Usage

string Fb::dropdownTree ( string $name , array $attrs , array $options );

Arguments

  1. string $name
    The field name
  2. array $attrs
    Extra attributes for the SELECT element
       The special attribute "-dropdown-top" sets the label for the top item
       Use an empty string for no top item
  3. array $options
    One or more field options;
       'root'     Treenode  Tree root - Required
       'exclude'  array     Node IDs to exclude from rendering

Return value

  • string
    HTML