function webform_component_implements in Webform 7.4
Same name and namespace in other branches
- 6.3 webform.module \webform_component_implements()
- 7.3 webform.module \webform_component_implements()
Check if a component implements a particular hook.
Parameters
$type: The component type as a string.
$callback: The callback to check.
Return value
bool Whether or not the hook is implemented.
4 calls to webform_component_implements()
- webform_format_email_address in ./
webform.module - Given an email address and a name, format an e-mail address.
- webform_views_pre_view in views/
webform.views.inc - Implements hook_view_pre_view().
- _webform_client_form_submit_process in ./
webform.module - Post processes the submission tree with any updates from components.
- _webform_submission_prepare_mail in includes/
webform.submissions.inc - Prepare a submission email for use by webform_submission_send_mail()
File
- ./
webform.module, line 4982 - This module provides a simple way to create forms and questionnaires.
Code
function webform_component_implements($type, $callback) {
$function = '_webform_' . $callback . '_' . $type;
webform_component_include($type);
return function_exists($function);
}