function heartbeat_include in Heartbeat 6.3
Same name and namespace in other branches
- 6.4 heartbeat.common.inc \heartbeat_include()
Include heartbeat .inc class files
2 calls to heartbeat_include()
- heartbeat_block in ./
heartbeat.module - Implementation of hook_blocks()
- heartbeat_class_loader in ./
heartbeat.module
File
- ./
heartbeat.module, line 656
Code
function heartbeat_include($file, $module = 'heartbeat') {
static $loaded = array();
$file = strtolower($file);
$path = drupal_get_path('module', $module) . '/includes/' . $file . '.inc';
if (!isset($loaded[$file]) && is_file($path)) {
require $path;
$loaded[$file] = TRUE;
}
return $loaded[$file];
}