function forena_sync_reports in Forena Reports 7.3
Same name and namespace in other branches
- 8 forena.module \forena_sync_reports()
- 6.2 forena.admin.inc \forena_sync_reports()
- 7.5 forena.module \forena_sync_reports()
- 7.2 forena.admin.inc \forena_sync_reports()
- 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.
6 calls to forena_sync_reports()
- drush_forena_clear_cache in ./
forena.drush.inc - Execute a clear forena's cache from drush
- drush_forena_deliver_reports in ./
forena.drush.inc - Execute copy of the reports from drush.
- forena_install in ./
forena.install - forena_settings_submit in ./
forena.admin.inc - Added submit handler to create directories and clear menu cache
- forena_settings_sync_submit in ./
forena.admin.inc
File
- ./
forena.module, line 1379
Code
function forena_sync_reports($copy_reports = FALSE) {
if ($copy_reports) {
$directories = module_invoke_all('forena_report_directory');
$i = 0;
if ($directories) {
foreach ($directories as $src_dir) {
$i += _forena_copy_reports($src_dir, TRUE);
}
if ($i > 0) {
drupal_set_message($i . ' reports copied');
}
}
}
forena_db_sync();
menu_rebuild();
}