You are here

function forena_sync_reports in Forena Reports 8

Same name and namespace in other branches
  1. 6.2 forena.admin.inc \forena_sync_reports()
  2. 7.5 forena.module \forena_sync_reports()
  3. 7.2 forena.admin.inc \forena_sync_reports()
  4. 7.3 forena.module \forena_sync_reports()
  5. 7.4 forena.module \forena_sync_reports()

Enter description here ...

Parameters

$copy_reports If true, reports will by re-copied from: module source files to destination.

2 calls to forena_sync_reports()
drush_forena_deliver_reports in ./forena.drush.inc
Execute copy of the reports from drush.
forena_settings_sync_submit in forena_ui/forena.admin.inc

File

./forena.module, line 607

Code

function forena_sync_reports($copy_reports = FALSE) {
  if ($copy_reports) {
    $i = _forena_revert_reports();
    if ($i > 0) {
      drupal_set_message($i . ' reports reverted');
    }
  }
}