This repository has been archived by the owner on Dec 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chargify_sites.defaults.inc
178 lines (162 loc) · 3.77 KB
/
chargify_sites.defaults.inc
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?php
/**
* Helper to implementation of hook_content_default_fields().
*/
function _chargify_sites_content_default_fields() {
$fields = array();
// Exported field: field_domain
$fields[] = array(
'field_name' => 'field_domain',
'type_name' => 'site',
'display_settings' => array(
'weight' => '31',
'parent' => '',
'label' => array(
'format' => 'hidden',
),
'teaser' => array(
'format' => 'hidden',
'exclude' => 0,
),
'full' => array(
'format' => 'hidden',
'exclude' => 0,
),
'4' => array(
'format' => 'default',
'exclude' => 0,
),
'content_bottom' => array(
'format' => 'default',
'exclude' => 0,
),
'content_top' => array(
'format' => 'default',
'exclude' => 0,
),
'right' => array(
'format' => 'default',
'exclude' => 0,
),
'token' => array(
'format' => 'default',
'exclude' => 0,
),
),
'widget_active' => '1',
'type' => 'link',
'required' => '1',
'multiple' => '0',
'module' => 'link',
'active' => '1',
'attributes' => array(
'target' => 'default',
'rel' => '',
'class' => '',
),
'display' => array(
'url_cutoff' => '80',
),
'url' => 0,
'title' => 'none',
'title_value' => '',
'enable_tokens' => 0,
'widget' => array(
'default_value' => array(
'0' => array(
'title' => '',
'url' => '',
),
),
'default_value_php' => NULL,
'label' => 'Domain name',
'weight' => '31',
'description' => '',
'type' => 'link',
'module' => 'link',
),
);
// Translatables
array(
t('Domain name'),
);
return $fields;
}
/**
* Helper to implementation of hook_user_default_permissions().
*/
function _chargify_sites_user_default_permissions() {
$permissions = array();
// Exported permission: administer chargify sites
$permissions[] = array(
'name' => 'administer chargify sites',
'roles' => array(
'0' => 'Admin',
),
);
// Exported permission: create site content
$permissions[] = array(
'name' => 'create site content',
'roles' => array(
'0' => 'anonymous user',
'1' => 'authenticated user',
),
);
// Exported permission: delete any site content
$permissions[] = array(
'name' => 'delete any site content',
'roles' => array(
'0' => 'Admin',
),
);
// Exported permission: delete own site content
$permissions[] = array(
'name' => 'delete own site content',
'roles' => array(
'0' => 'authenticated user',
),
);
// Exported permission: edit any site content
$permissions[] = array(
'name' => 'edit any site content',
'roles' => array(
'0' => 'Admin',
),
);
// Exported permission: edit own site content
$permissions[] = array(
'name' => 'edit own site content',
'roles' => array(),
);
// Exported permission: view any page content
$permissions[] = array(
'name' => 'view any page content',
'roles' => array(
'0' => 'anonymous user',
'1' => 'authenticated user',
),
);
// Exported permission: view any site content
$permissions[] = array(
'name' => 'view any site content',
'roles' => array(
'0' => 'Admin',
),
);
// Exported permission: view own page content
$permissions[] = array(
'name' => 'view own page content',
'roles' => array(
'0' => 'anonymous user',
'1' => 'authenticated user',
),
);
// Exported permission: view own site content
$permissions[] = array(
'name' => 'view own site content',
'roles' => array(
'0' => 'authenticated user',
),
);
return $permissions;
}