You are here

function forena_forena_plugins in Forena Reports 7.3

Same name and namespace in other branches
  1. 8 forena.module \forena_forena_plugins()
  2. 6.2 forena.module \forena_forena_plugins()
  3. 6 forena.module \forena_forena_plugins()
  4. 7.5 forena.module \forena_forena_plugins()
  5. 7 forena.module \forena_forena_plugins()
  6. 7.2 forena.module \forena_forena_plugins()
  7. 7.4 forena.module \forena_forena_plugins()

Self register plugins with forena.

File

./forena.module, line 951

Code

function forena_forena_plugins() {
  $path = drupal_get_path('module', 'forena');
  $plugins['FrxPDO'] = array(
    'file' => 'plugins/FrxPDO.inc',
    'parent' => 'FrxDataSource',
    'class' => 'FrxPDO',
    'path' => $path,
  );
  $plugins['FrxOracle'] = array(
    'file' => 'plugins/FrxOracle.inc',
    'parent' => 'FrxDataSource',
    'class' => 'FrxOracle',
    'path' => $path,
  );
  $plugins['FrxDrupal'] = array(
    'file' => 'plugins/FrxDrupal.inc',
    'parent' => 'FrxDataSource',
    'class' => 'FrxDrupal',
    'path' => $path,
  );
  $plugins['FrxFiles'] = array(
    'file' => 'plugins/FrxFiles.inc',
    'parent' => 'FrxDataSource',
    'class' => 'FrxFiles',
  );
  $plugins['FrxPostgres'] = array(
    'file' => 'plugins/FrxPostgres.inc',
    'class' => 'FrxPostgres',
    'parent' => 'FrxDataSource',
  );
  $plugins['FrxMSSQL'] = array(
    'file' => 'plugins/FrxMSSQL.inc',
    'parent' => 'FrxDataSource',
    'class' => 'FrxMSSQL',
    'path' => $path,
  );

  // Normally you wouldn't do this but I wanted to make the FrxReport sytax work.
  $plugins['FrxReport'] = array(
    'file' => 'plugins/FrxReportContext.inc',
    'parent' => 'FrxContext',
    'class' => 'FrxReportContext',
    'path' => $path,
  );
  return $plugins;
}