Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 70 to 89

Definition

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

    
$ref escape_check($ref);
    
$query "DELETE FROM slideshow WHERE ref = '{$ref}'";
    
sql_query($query);

    
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 November 2020 20:05 Europe/London time based on the source file dated 8th June 2020 12:35 Europe/London time.