function webform_share_theme in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_share/webform_share.module \webform_share_theme()
Implements hook_theme().
File
- modules/
webform_share/ webform_share.module, line 174 - Allows webforms to be shared on other websites using an iframe.
Code
function webform_share_theme($existing, $type, $theme, $path) {
return [
// Using dedicated html and page template ensures the shared webforms
// output is as simple as possible.
'html__webform_share' => [
'render element' => 'html',
],
'page__webform_share' => [
'render element' => 'page',
],
'webform_share_iframe' => [
'render element' => 'element',
],
'webform_share_script' => [
'render element' => 'element',
],
];
}