function calendar_systems_load_dependenies in Calendar Systems 6
Same name and namespace in other branches
- 6.3 calendar_systems.module \calendar_systems_load_dependenies()
It loads modules required files
1 call to calendar_systems_load_dependenies()
- calendar_systems_get_calendar_instance in ./
calendar_systems.module - Gets an instance of the calendar object for the selected calendar system acording to the settings
File
- ./
calendar_systems.module, line 17
Code
function calendar_systems_load_dependenies() {
global $_calendar_systems_load_dependenies_called;
if ($_calendar_systems_load_dependenies_called !== TRUE) {
if (!class_exists('cmfcClassesCoreStandAlone') and !module_exists('cml_')) {
require_once dirname(__FILE__) . '/calendar/lib/exception.class.inc.php';
require_once dirname(__FILE__) . '/calendar/lib/classesCore.class.inc.php';
}
if (!class_exists('cmfcCalendar')) {
require_once dirname(__FILE__) . '/calendar/calendar.class.inc.php';
}
$_calendar_systems_load_dependenies_called = TRUE;
}
}