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

report_has_thumbnail()

Description

Check if report has a "thumbnail" column in its SQL query.

Parameters

ColumnTypeDefaultDescription
$query: string
-1]; isset$info['period'] && in_array$info['period']
[0
? $available_periods
$query string The reports' SQL query.

Location

include/reporting_functions.php lines 675 to 678

Definition

 
function report_has_thumbnail(string $query): bool
    
{
    return 
preg_match('/(AS )*\'thumbnail\'/mi'$query);
    }

This article was last updated 21st May 2024 21:35 Europe/London time based on the source file dated 8th May 2024 18:45 Europe/London time.