SproutCMS

This is the code documentation for the SproutCMS project

function dropdown()

Generates a dropdown selection menu

Usage

string Fb::dropdown ( 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
    Data for the OPTION elements in value-label pairs,
           e.g. [0 => 'Inactive', 1 => 'Active']

Return value

  • string