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

save_alternative_file()

Parameters

ColumnTypeDefaultDescription
$resource
$ref

Location

include/resource_functions.php lines 5078 to 5086

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 19th March 2024 08:35 Europe/London time based on the source file dated 11th March 2024 14:25 Europe/London time.