SproutCMS

This is the code documentation for the SproutCMS project

function dropdownItems()

Returns HTML for a list of OPTIONs, and depending on the input array, OPTGROUP tags.

Usage

string Fb::dropdownItems ( array $options [, string|array $selected ] );

Arguments

  1. array $options
    The options. Any element that is an array will become an optgroup, with its inner elements
           becoming options.
  2. string|array $selected = NULL
    The value of the selected option

Return value

  • string