public function AppService::correctModulePath in Forena Reports 8
1 call to AppService::correctModulePath()
File
- src/
AppService.php, line 38
Class
Namespace
Drupal\forenaCode
public function correctModulePath($module, &$path) {
if (strpos($path, '/') !== 0 && strpos($path, '..') !== 0) {
$tmp_path = drupal_get_path('module', $module) . "/" . $path;
if (is_dir($tmp_path)) {
$path = $tmp_path;
}
}
}