Collections functions
General functions
Render functions
Theme permission functions
Resource functions

delete_slideshow()

Description

Delete slideshow record

Parameters

ColumnTypeDefaultDescription
$ref integer ID of the slideshow

Return

boolean

Location

include/slideshow_functions.php lines 78 to 97

Definition

 
function delete_slideshow($ref)
    {
    
$file_path get_slideshow_image_file_path($ref);
    if(
$file_path != '' && unlink($file_path) === false)
        {
        return 
false;
        }

    
$query "DELETE FROM slideshow WHERE ref = ?";
    
$query_params = ["i",$ref];
    
ps_query($query,$query_params);

    
log_activity("Deleted slideshow image"LOG_CODE_DELETEDnull'slideshow''ref'$ref);

    
// Clear cache
    
clear_query_cache("slideshow");


    return 
true;
    }

This article was last updated 30th September 2022 17:05 Europe/London time based on the source file dated 30th March 2022 16:05 Europe/London time.