function FrxDrupalApplication::plugins in Forena Reports 6.2
Same name and namespace in other branches
- 7.2 FrxDrupalApplication.inc \FrxDrupalApplication::plugins()
Invokes the hooks required for forena plugin registration. Each module returns an array structure that defines multiple plugins
class - Indicates the name of the class that will be used to define the plugins behaviors.
Overrides FrxHostApplication::plugins
File
- ./
FrxDrupalApplication.inc, line 198 - HostApp.inc Defines all the interface points between the host application and Forena. Each of these methods must be specified in order for Forena to function properly. The base class here is drupal, so those
Class
Code
function plugins() {
static $plugins = '';
if (!$plugins) {
$plugins = array();
foreach (module_list() as $module) {
$function = $module . '_forena_plugins';
if (function_exists($function)) {
$returned_plugins = $function();
if ($returned_plugins) {
foreach ((array) $returned_plugins as $p) {
$p['module'] = $module;
$p['file'] = drupal_get_path('module', $p['module']) . '/' . $p['file'];
$plugins[] = $p;
}
}
}
}
}
return $plugins;
}