You are here

function uuid_features_include in UUID Features Integration 7

Load include files for on-behalf implementations of other modules.

This modules provides on-behalf-of integrations for other modules. The required files can be included with this function.

Similar to:

See also

features_include()

1 call to uuid_features_include()
uuid_features.module in ./uuid_features.module
UUID Features module allows to export data stored in the db by features.

File

./uuid_features.module, line 22
UUID Features module allows to export data stored in the db by features.

Code

function uuid_features_include() {
  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 DRUPAL_ROOT . '/' . $file;
      }
    }
    $loaded = TRUE;
  }
}