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

config_add_file_input()

Description

Return a data structure that will be used to generate the HTML for
uploading a file

Parameters

ColumnTypeDefaultDescription
$config_var
$label string Label for field
$form_action string URL where the form should post to
$width int 420 Width of the input file HTML tag. Default - 420
$valid_extensions array array Optional array of file extensions that will be validated during upload, see config_process_file_input()
$file_preview false
$name string HTML input file name attribute

Location

include/config_functions.php lines 707 to 710

Definition

 
function config_add_file_input($config_var$label$form_action$width 420$valid_extensions = array(), $file_preview false)
    {   
    return array(
'file_input'$config_var$label$form_action$width$valid_extensions$file_preview);
    }

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