-
Notifications
You must be signed in to change notification settings - Fork 0
/
field_paywall.install
41 lines (40 loc) · 1.06 KB
/
field_paywall.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
<?php
/**
* @file
* Installation file for Field Paywall module.
*/
/**
* Implements hook_field_schema().
*/
function field_paywall_field_schema($field) {
return array(
'columns' => array(
'fields_hidden' => array(
'description' => 'Which fields are hidden when the paywall is active',
'type' => 'blob',
'size' => 'big',
'serialize' => TRUE,
'not null' => FALSE,
),
'roles' => array(
'description' => 'Which roles the paywall should be active for.',
'type' => 'blob',
'size' => 'big',
'serialize' => TRUE,
'not null' => FALSE,
),
'enabled' => array(
'description' => 'Boolean indicating whether the paywall should is enabled by default or not.',
'type' => 'int',
'not null' => TRUE,
'default' => 1,
),
'message' => array(
'description' => 'The message displayed to the end user when the paywall is active',
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
),
),
);
}