You are here

function webform_localization_component_include in Webform Localization 7.4

Load a component file into memory.

Parameters

string $component_type: The string machine name of a component.

See also

webform_component_include()

1 call to webform_localization_component_include()
webform_localization_component_invoke in ./webform_localization.module
Invoke a component callback.

File

./webform_localization.module, line 119
Webform localization module.

Code

function webform_localization_component_include($component_type) {
  static $included = array();

  // No need to load components that have already been added once.
  if (!isset($included[$component_type])) {
    $included[$component_type] = TRUE;
    module_load_include('inc', 'webform_localization', 'components/' . $component_type);
  }
}