Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

add_alternative_file()

Description

Add alternative file

Parameters

ColumnTypeDefaultDescription
$resource integer
$name string
$description string ""
$file_name string ""
$file_extension string ""
$file_size integer 0
$alt_type string ''

Return

integer

Location

include/resource_functions.php lines 4300 to 4309

Definition

 
function add_alternative_file($resource,$name,$description="",$file_name="",$file_extension="",$file_size=0,$alt_type='')
    {
    
debug_function_call("add_alternative_file"func_get_args());

    
$name trim_filename($name);
    
$file_name trim_filename($file_name);

    
sql_query("insert into resource_alt_files(resource,name,creation_date,description,file_name,file_extension,file_size,alt_type) values ('" escape_check($resource) . "','" escape_check($name) . "',now(),'" escape_check($description) . "','" escape_check($file_name) . "','" escape_check($file_extension) . "','" escape_check($file_size) . "','" escape_check($alt_type) . "')");
    return 
sql_insert_id();
    }

This article was last updated 2nd December 2020 00:35 Europe/London time based on the source file dated 30th November 2020 11:55 Europe/London time.