-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnodetools.api.php
128 lines (116 loc) · 3.16 KB
/
nodetools.api.php
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
<?php
function hook_node_info() {
return array(
'customtype' => array(
'name' => t('Custom node type'),
'base' => 'custom',
'has_title' => TRUE,
'title_label' => t('Custom node type title'),
'has_body' => FALSE,
'body_label' => t('Custom node type body'),
'locked' => TRUE,
/**
* ----------------
* Extra properties
* ----------------
*/
/**
* Submission form settings (core functional)
* ------------------------------------------
*
* Preview before submitting
* node_preview_{$type}
* value <int>:
* 0 => Disabled
* 1 => Optional
* 2 => Required
*/
'node-preview' => 0,
/**
* Publishing options (core functional)
* ------------------------------------
*
* Default options
* node_options_{$type}
* value <array>:
* array('status', 'promote', 'sticky', 'revision')
*/
'node-options' => array('status'),
/**
* Display settings
* ----------------
*
* Display author and date information
* node_submitted_{$type}
* value <int>:
* 0 => Hide author and date information
* 1 => Display author and date information
*/
'node-submitted' => 0,
/**
* Comment settings
* ----------------
*/
'comment' => array(
/**
* Default comment setting for new content
* comment_{$type}
* values <int>:
* 0 => hidden
* 1 => closed
* 2 => open
*/
'status' => 2,
/**
* Threading
* comment_default_mode_{$type}
* values <int>:
* 0 => don't show
* 1 => show
*/
'default-mode' => 1,
/**
* Anonymous commenting settings
* comment_anonymous_{$type}
* value <int>:
* 0 => Anonymous posters may not enter contact information
* 1 => Anonymous posters may leave contact information
* 2 => Anonymous posters must leave contact information
*/
'anonymous' => 1,
/**
* Comments per page
* comment_default_per_page_{$type}
* values <int>:
* 10, 30, 50, 70, 90, 150, 200, 250, 300
*/
'default-per-page' => 50,
/**
* Show reply form on the same page as comments
* comment_form_location_{$type}
* values:
* 0 => hide
* 1 => show
*/
'form-location' => 1,
/**
* Preview comment
* comment_preview_{$type}
* values <int>:
* 0 => disabled
* 1 => optional
* 2 => required
*/
'preview' => 0,
/**
* Allow comment title
* comment_subject_field_{$type}
* values <int>:
* 0 => disallow
* 1 => allow
*/
'subject-field' => 0,
),
),
);
}