Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 19th March 2024 09:05 Europe/London time based on the source file dated 20th February 2024 17:10 Europe/London time.