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 672 to 675

Definition

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

This article was last updated 27th April 2024 11:05 Europe/London time based on the source file dated 10th April 2024 18:30 Europe/London time.