You are here

forena.drush.inc in Forena Reports 7.3

Same filename and directory in other branches
  1. 8 forena.drush.inc
  2. 7.5 forena.drush.inc
  3. 7.4 forena.drush.inc

forena.drush.inc Implementation of drush command hook.

File

forena.drush.inc
View 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

Namesort descending 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.