Collections functions
General functions
Render functions
Theme permission functions
Resource functions

save_alternative_file()

Parameters

ColumnTypeDefaultDescription
$resource
$ref

Location

include/resource_functions.php lines 4647 to 4655

Definition

 
function save_alternative_file($resource,$ref)
    {
    
# Saves the 'alternative file' edit form back to the database
    
$name           getval("name","");
    
$description    getval("description","");
    
$alt_type       getval("alt_type","");
    
ps_query("UPDATE resource_alt_files SET name = ?,description = ?,alt_type = ? WHERE resource = ? AND ref = ?",
    array(
"s",$name,"s",$description,"s",$alt_type,"i",$resource,"i",$ref));
    }

This article was last updated 5th October 2022 02:35 Europe/London time based on the source file dated 30th September 2022 14:20 Europe/London time.