You are here

function uuid_features_load_module_includes in UUID Features Integration 6

Load all include files for enabled modules that this module provides on-behalf-of functionality for.

2 calls to uuid_features_load_module_includes()
uuid_node_features_export in includes/uuid_node.features.inc
Implementation of hook_features_export().
uuid_node_features_export_render in includes/uuid_node.features.inc
Implementation of hook_features_export_render().

File

./uuid_features.module, line 46

Code

function uuid_features_load_module_includes() {
  static $loaded = FALSE;
  if (!$loaded) {
    $inc_path = drupal_get_path('module', 'uuid_features') . '/includes/modules';
    foreach (module_list() as $module) {
      $file = "{$inc_path}/{$module}.inc";
      if (file_exists($file)) {
        include_once $file;
      }
    }
    $loaded = TRUE;
  }
}