function quant_include in Quant 6
Same name and namespace in other branches
- 7 quant.module \quant_include()
Include .inc files Similar to ctools_include()
Parameters
$file: The base file name to be included.
$module: Optional module containing the include.
$dir: Optional subdirectory containing the include file.
5 calls to quant_include()
- quant_admin_settings in includes/
forms.inc - Provide admin settings form
- quant_build_data in ./
quant.module - Wrapper for data building functions
- quant_page in includes/
pages.inc - The analytics page callback
- quant_process in ./
quant.module - Process quants and convert them to charts with data plotted
- quant_quants in ./
quant.module - Implementation of hook_quants()
File
- ./
quant.module, line 275
Code
function quant_include($file, $module = 'quant', $dir = 'includes') {
static $used = array();
$dir = '/' . ($dir ? $dir . '/' : '');
if (!isset($used[$module][$dir][$file])) {
require_once './' . drupal_get_path('module', $module) . "{$dir}{$file}.inc";
$used[$module][$dir][$file] = TRUE;
}
}