-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuw_webform_to_sf.install
46 lines (41 loc) · 1.1 KB
/
uw_webform_to_sf.install
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
<?php
/**
* @file
*
* The install file for Webform to SF module, defines the table for storing config parameters
*
*/
function uw_webform_to_sf_schema() {
$schema = array();
$schema['webform_to_sf_config'] = array(
'description' => 'Holds configuration data for saving the form to salesforce',
'fields' => array(
'nid' => array(
'description' => 'The node identifier of a webform.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'target' => array(
'description' => 'The webservice target that will accept the json post request',
'type' => 'text',
'not null' => TRUE,
),
'sobject' => array(
'description' => 'The api name of the sObject to save to',
'type' => 'text',
'not null' => TRUE,
),
'enabled' => array(
'description' => 'Should we post to this target?',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 1,
),
),
'primary key' => array('nid')
);
return $schema;
}