File: //home/unimil/public_html/wp-content/themes/bridge/framework/modules/qode-modules-loader.php
<?php
if(!function_exists('qode_load_modules')) {
/**
* Loades all modules by going through all folders that are placed directly in modules folder
* and loads load.php file in each. Hooks to qode_after_options_map action
*
* @see http://php.net/manual/en/function.glob.php
*/
function qode_load_modules() {
foreach(glob(QODE_FRAMEWORK_ROOT_DIR.'/modules/*/load.php') as $module_load) {
include_once $module_load;
}
}
add_action('qode_before_options_map', 'qode_load_modules');
}