Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

config_add_boolean_select()

Description

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

to array('False', 'True') in the local language.

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 ''
$width integer 420 the width of the input field in pixels. Default: 420.
$title null
$autosave false
$on_change_js null
$hidden false
$help string '' Help text to display for this question
$reload_page boolean false Reload the page after saving.
array string $choices array of the text to display for the two choices: False and True. Defaults

Location

include/config_functions.php lines 921 to 924

Definition

 
function config_add_boolean_select($config_var$label$choices ''$width 420$title null$autosave false,$on_change_js=null$hidden=falsestring $help ''bool $reload_page false)
    {
    return array(
'boolean_select'$config_var$label$choices$width$title$autosave,$on_change_js,$hidden$help$reload_page);
    }

This article was last updated 17th November 2024 15:35 Europe/London time based on the source file dated 13th November 2024 15:50 Europe/London time.