function insert_init in Insert 6
Implementation of hook_init().
File
- ./
insert.module, line 27 - Allows insertion of files, images, and other media directly into the body field by using an "Insert" button next to the uploaded file.
Code
function insert_init() {
// Default file and image implementations.
module_load_include('inc', 'insert', 'includes/insert');
// FileField support.
if (module_exists('filefield')) {
module_load_include('inc', 'insert', 'includes/filefield');
}
// ImageField support
if (module_exists('imagefield')) {
module_load_include('inc', 'insert', 'includes/imagefield');
}
// ImageCache support
if (module_exists('imagecache')) {
module_load_include('inc', 'insert', 'includes/imagecache');
}
}