-
Notifications
You must be signed in to change notification settings - Fork 0
/
zombree_webform.module
52 lines (46 loc) · 1.46 KB
/
zombree_webform.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* @file
* Provides an example that shows how to create a Webform composite.
*/
module_load_include('inc', 'webform', 'includes/webform.theme');
/**
* Implements hook_theme().
*/
function zombree_webform_theme() {
$info = [
'zombree_webform_colleges_attended_composite' => [
'render element' => 'element',
],
'zombree_webform_employment_info_composite' => [
'render element' => 'element',
],
];
return $info;
}
/**
* Prepares variables for zombree webform templates.
*
* Colleges Attended Composite template: zombree_webform-colleges-attended-composite.html.twig.
*
* @param array $variables
* An associative array containing:
* - element: An associative array containing the properties of the element.
*/
function template_preprocess_zombree_webform_colleges_attended_composite(array &$variables) {
// Here you can get the composite element and alter it.
_template_preprocess_webform_composite($variables);
}
/**
* Prepares variables for zombree webform templates.
*
* Colleges Attended Composite template: zombree_webform-employment-info-composite.html.twig.
*
* @param array $variables
* An associative array containing:
* - element: An associative array containing the properties of the element.
*/
function template_preprocess_zombree_webform_employment_info_composite(array &$variables) {
// Here you can get the composite element and alter it.
_template_preprocess_webform_composite($variables);
}