function webform_component_invoke in Webform 6.3
Same name and namespace in other branches
- 7.4 webform.module \webform_component_invoke()
- 7.3 webform.module \webform_component_invoke()
Invoke a component callback.
Parameters
$type: The component type as a string.
$callback: The callback to execute.
...: Any additional parameters required by the $callback.
13 calls to webform_component_invoke()
- theme_webform_results_table in includes/
webform.report.inc - Theme the results table displaying all the submissions for a particular node.
- WebformGeneralTestCase::testWebformCreateNewType in tests/
webform.test - Test webform-enabling a different node type and testing behavior.
- webform_component_defaults in includes/
webform.components.inc - Populate a component with the defaults for that type.
- webform_component_delete in includes/
webform.components.inc - webform_component_edit_form in includes/
webform.components.inc - Form to configure a webform component.
File
- ./
webform.module, line 3386
Code
function webform_component_invoke($type, $callback) {
$args = func_get_args();
$type = array_shift($args);
$callback = array_shift($args);
$function = '_webform_' . $callback . '_' . $type;
webform_component_include($type);
if (function_exists($function)) {
return call_user_func_array($function, $args);
}
}