function emapi_autoload in Embedded Media Field 6.3
Autoload the media object classes when needed.
1 string reference to 'emapi_autoload'
- emapi_init in emapi/
emapi.module - Implementation of hook_init().
File
- emapi/
emapi.module, line 128 - Provides an API for parsing, storage, and display of third party media.
Code
function emapi_autoload($class_name) {
if ($class_name == 'EmapiMedia') {
module_load_include('inc', 'emapi', 'includes/emapi.class.media');
}
else {
if ($class = emapi_get_provider_class_by_class_name($class_name)) {
include_once $class['path'] . '/' . $class['file'];
}
}
}