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

string select_option(string $name, string $default, array $options)

Generates an selection box from the given options.
If the theme has a defined function theme_select_option() it outputs that result instead of the default result

echo select_option('image', 'option1', array('option1', 'option2', 'option3'));

Arguments

  • $name

    the name of the <select> object

  • $default

    the default selected value

  • $options

    an array of all possible values