Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

config_add_single_select()

Description

Return a data structure that will instruct the configuration page generator functions to
add a single select configuration variable to the setup page.

are used as the values of the options, and the values are the alternatives the user sees. (But
see $usekeys, below.) Usually a $lang entry whose value is an array of strings.
to false the values from $choices will be used for both the values of the options and the text
the user sees. Defaulted to true.

Parameters

ColumnTypeDefaultDescription
$config_var string the name of the configuration variable to be added.
$label string the user text displayed to label the select block. Usually a $lang string.
$choices ''
$usekeys boolean true tells whether to use the keys from $choices as the values of the options. If set
$width integer 420 the width of the input field in pixels. Default: 420.
$title null
$autosave false
$on_change_js null
$hidden false
array string $choices the array of the alternatives -- the options in the select block. The keys

Location

include/config_functions.php lines 784 to 787

Definition

 
function config_add_single_select($config_var$label$choices ''$usekeys true$width 420$title null$autosave false$on_change_js=null$hidden=false)
    {
    return array(
'single_select'$config_var$label$choices$usekeys$width$title$autosave$on_change_js$hidden);
    }

This article was last updated 19th March 2024 05:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.