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 5164 to 5172

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 24th July 2024 18:35 Europe/London time based on the source file dated 23rd July 2024 11:20 Europe/London time.