SproutCMS

This is the code documentation for the SproutCMS project

function multiradio()

Returns HTML for a bunch of radiobuttons

Usage

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

Arguments

  1. string $name
    The field name
  2. array $attrs
    Attributes for all input elements, e.g. ['class' => 'super-input', 'style' => 'font-style: italic']
  3. array $options
    each is a value => label mapping, e.g. ['A' => 'Apple crumble', 'B' => 'Banana split']

Return value

  • string
    HTML containing DIV tags containing INPUT and LABEL tags.