Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

get_reports()

Parameters

This function accepts no parameters.

Location

include/reporting_functions.php lines 14 to 33

Definition

 
function get_reports()
    {
    
# Returns an array of reports. The standard reports are translated using $lang. Custom reports are i18n translated.
    # The reports are always listed in the same order - regardless of the used language. 

    # Executes query.
    
$r sql_query("select * from report order by name");

    
# Translates report names in the newly created array.
    
$return = array();
    for (
$n 0;$n<count($r);$n++)
        {
        if (!
hook('ignorereport''', array($r[$n])))
            {
            
$r[$n]["name"] = get_report_name($r[$n]);
            
$return[] = $r[$n]; # Adds to return array.
            
}
        }
    return 
$return;
    }

This article was last updated 30th November 2020 14:05 Europe/London time based on the source file dated 26th November 2020 08:30 Europe/London time.