public static function getReportMetadata($idSite, $reportType)
{
$availableReportMetadata = array();
/**
* TODO: change this event so it returns a list of API methods instead of report metadata arrays.
* Triggered when gathering the list of Piwik reports that can be used with a certain
* transport medium.
*
* Plugins that provide their own transport mediums should use this
* event to list the Piwik reports that their backend supports.
*
* @param array &$availableReportMetadata An array containg report metadata for each supported
* report.
* @param string $reportType A string ID describing how the report is sent, eg,
* `'sms'` or `'email'`.
* @param int $idSite The ID of the site we're getting available reports for.
*/
Piwik::postEvent(self::GET_REPORT_METADATA_EVENT, array(&$availableReportMetadata, $reportType, $idSite));
return $availableReportMetadata;
}