public function FrxDataSource::getSQLInclude in Forena Reports 7.5
1 call to FrxDataSource::getSQLInclude()
- FrxDataSource::parseSQLFile in src/
Driver/ FrxDataSource.php
File
- src/
Driver/ FrxDataSource.php, line 247 - Class that defines default methods for access control in an FrxDataSource
Class
Namespace
Drupal\forena\DriverCode
public function getSQLInclude($block_name) {
//@TODO: allow relative block includes
$block = $this
->loadBlock($block_name, TRUE);
if ($block && $block['type'] == 'sql') {
return $block;
}
else {
drupal_set_message(t('Include %b.sql not found', array(
'%b' => $block_name,
)), 'error', FALSE);
}
}