function emfield_autoload in Embedded Media Field 6.2
Autoload the media object classes when needed.
1 string reference to 'emfield_autoload'
- emfield_init in ./
emfield.module - Implementation of hook_init().
File
- ./
emfield.module, line 975 - Embedded Media Field is a CCK-based framework for 3rd party media files.
Code
function emfield_autoload($class_name) {
global $emfield_registered_classes;
if (isset($emfield_registered_classes[$class_name])) {
include_once $emfield_registered_classes[$class_name]['path'] . '/' . $emfield_registered_classes[$class_name]['file'];
}
}