forena.drush.inc in Forena Reports 7.3
Same filename and directory in other branches
forena.drush.inc Implementation of drush command hook.
File
forena.drush.incView source
<?php
/**
* @file forena.drush.inc
* Implementation of drush command hook.
*/
function forena_drush_command() {
$items = array();
$items['forena-clear-cache'] = array(
'description' => 'Forena clear report cache',
'examples' => array(
'drush frxcc',
),
'aliases' => array(
'frxcc',
),
);
$items['forena-deliver-reports'] = array(
'description' => 'Forena Copy/Deliver module provided forena reports',
'examples' => array(
'drush frxcp',
),
'aliases' => array(
'frxcp',
),
);
return $items;
}
/**
* Execute a clear forena's cache from drush
*/
function drush_forena_clear_cache() {
require_once 'forena.common.inc';
require_once 'forena.admin.inc';
forena_sync_reports(FALSE);
}
/**
* Execute copy of the reports from drush.
*/
function drush_forena_deliver_reports() {
require_once 'forena.common.inc';
require_once 'forena.admin.inc';
forena_sync_reports(TRUE);
}
Functions
Name![]() |
Description |
---|---|
drush_forena_clear_cache | Execute a clear forena's cache from drush |
drush_forena_deliver_reports | Execute copy of the reports from drush. |
forena_drush_command | @file forena.drush.inc Implementation of drush command hook. |