You are here

function forena_forena_plugins in Forena Reports 8

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

Self register plugins with forena.

File

./forena.module, line 297

Code

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

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