function filefield_paths_init in File (Field) Paths 6.2
Same name and namespace in other branches
- 5 filefield_paths.module \filefield_paths_init()
Implements hook_init().
File
- ./
filefield_paths.module, line 12 - Contains core functions for the FileField Paths module.
Code
function filefield_paths_init() {
// Load all module dependant includes.
foreach (module_list() as $module) {
if (file_exists($file = dirname(__FILE__) . "/modules/{$module}.inc")) {
require_once $file;
}
}
// Load all other includes.
foreach (_filefield_paths_includes() as $include) {
if (file_exists($file = dirname(__FILE__) . "/includes/{$include}.inc") || file_exists($file = dirname(__FILE__) . "/includes/{$include}/{$include}.inc")) {
require_once $file;
}
}
}