You are here

function yandex_metrics_reports_sort_and_save in Yandex.Metrics 8.3

Same name and namespace in other branches
  1. 7.3 yandex_metrics_reports/yandex_metrics_reports.module \yandex_metrics_reports_sort_and_save()

Sort and save reports array to the variable.

2 calls to yandex_metrics_reports_sort_and_save()
yandex_metrics_reports_get_list in yandex_metrics_reports/yandex_metrics_reports.module
Returns list of all reports.
yandex_metrics_reports_reports_submit in yandex_metrics_reports/yandex_metrics_reports.module
Submit handler for yandex_metrics_reports_reports form.

File

yandex_metrics_reports/yandex_metrics_reports.module, line 418
The main code of Yandex.Metrics Reports module.

Code

function yandex_metrics_reports_sort_and_save($reports) {

  // Sort by weight.
  usort($reports, '_yandex_metrics_reports_sort_reports_by_weight');
  variable_set('yandex_metrics_reports_list', $reports);
}