CPG-Nuke source documentation ⇒ CPG Dragonfly™ CMS
Files - Classes
  includes/functions/display.php
functions
yesno_option

string yesno_option(string $name, boolean $value)

Generates 2 radio buttons for Yes and No.
If the theme has a defined function theme_yesno_option() it outputs that result instead of the default result

Arguments

  • $name

    the name of the <input> object

  • $value [optional, default value = false]

    Which option is selected by default (true = yes, false=no)