You are here

function webform_localization_component_invoke in Webform Localization 7.4

Invoke a component callback.

Parameters

string $type: The component type as a string.

string $callback: The callback to execute.

...: Any additional parameters required by the $callback.

See also

webform_component_invoke()

3 calls to webform_localization_component_invoke()
webform_localization_webform_analysis_component_data_alter in ./webform_localization.module
Implements hook_webform_analysis_component_data_alter().
webform_localization_webform_csv_data_alter in ./webform_localization.module
Implements hook_webform_csv_data_alter().
webform_localization_webform_csv_header_alter in ./webform_localization.module
Implements hook_webform_csv_header_alter().

File

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

Code

function webform_localization_component_invoke($type, $callback) {
  $args = func_get_args();
  $type = array_shift($args);
  $callback = array_shift($args);
  $function = '_webform_localization_' . $callback . '_' . $type;
  webform_localization_component_include($type);
  if (function_exists($function)) {
    return call_user_func_array($function, $args);
  }
}