Merge pull request #22822 from civicrm/5.47
[civicrm-core.git] / xml / schema / Core / Menu.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Core</base>
5 <class>Menu</class>
6 <name>civicrm_menu</name>
7 <comment>Table to store menu items for all civicrm components.</comment>
8 <add>1.1</add>
9 <field>
8f069c03 10 <name>id</name>
f3ea5182 11 <title>Menu ID</title>
8f069c03
EM
12 <type>int unsigned</type>
13 <required>true</required>
0481e12c
A
14 <html>
15 <type>Number</type>
16 </html>
8f069c03 17 <add>2.1</add>
6a488035
TO
18 </field>
19 <primaryKey>
8f069c03
EM
20 <name>id</name>
21 <autoincrement>true</autoincrement>
6a488035
TO
22 </primaryKey>
23 <field>
8f069c03 24 <name>domain_id</name>
57e94608 25 <title>Domain ID</title>
8f069c03
EM
26 <type>int unsigned</type>
27 <required>true</required>
28 <pseudoconstant>
29 <table>civicrm_domain</table>
30 <keyColumn>id</keyColumn>
31 <labelColumn>name</labelColumn>
32 </pseudoconstant>
33 <comment>Which Domain is this menu item for</comment>
57e94608
A
34 <html>
35 <label>Domain</label>
36 </html>
8f069c03 37 <add>3.0</add>
6a488035
TO
38 </field>
39 <foreignKey>
8f069c03
EM
40 <name>domain_id</name>
41 <table>civicrm_domain</table>
42 <key>id</key>
43 <add>3.0</add>
6a488035
TO
44 </foreignKey>
45 <field>
8f069c03 46 <name>path</name>
f3ea5182 47 <title>Path</title>
8f069c03
EM
48 <type>varchar</type>
49 <length>255</length>
50 <comment>Path Name</comment>
51 <add>2.1</add>
6a488035
TO
52 </field>
53 <index>
54 <name>UI_path_domain_id</name>
55 <fieldName>path</fieldName>
56 <fieldName>domain_id</fieldName>
57 <unique>true</unique>
58 <add>2.1</add>
59 </index>
60 <field>
61 <name>path_arguments</name>
f3ea5182 62 <title>Arguments</title>
6a488035
TO
63 <type>text</type>
64 <comment>Arguments to pass to the url</comment>
65 <add>2.1</add>
66 </field>
67 <field>
8f069c03 68 <name>title</name>
f3ea5182 69 <title>Menu Title</title>
8f069c03
EM
70 <type>varchar</type>
71 <length>255</length>
8f069c03 72 <add>2.1</add>
6a488035
TO
73 </field>
74 <field>
75 <name>access_callback</name>
f3ea5182 76 <title>Access Callback</title>
6a488035
TO
77 <type>varchar</type>
78 <length>255</length>
79 <comment>Function to call to check access permissions</comment>
80 <add>2.1</add>
81 </field>
82 <field>
83 <name>access_arguments</name>
f3ea5182 84 <title>Access Arguments</title>
6a488035
TO
85 <type>text</type>
86 <comment>Arguments to pass to access callback</comment>
87 <add>2.1</add>
88 </field>
89 <field>
90 <name>page_callback</name>
f3ea5182 91 <title>Page Callback</title>
6a488035
TO
92 <type>varchar</type>
93 <length>255</length>
94 <comment>function to call for this url</comment>
95 <add>2.1</add>
96 </field>
97 <field>
98 <name>page_arguments</name>
f3ea5182 99 <title>Page Arguments</title>
6a488035
TO
100 <type>text</type>
101 <comment>Arguments to pass to page callback</comment>
102 <add>2.1</add>
103 </field>
104 <field>
105 <name>breadcrumb</name>
f3ea5182 106 <title>Breadcrumb</title>
6a488035
TO
107 <type>text</type>
108 <comment>Breadcrumb for the path.</comment>
109 <add>2.1</add>
110 </field>
111 <field>
112 <name>return_url</name>
113 <type>varchar</type>
114 <length>255</length>
115 <comment>Url where a page should redirected to, if next url not known.</comment>
1662d426
A
116 <html>
117 <label>Return URL</label>
118 </html>
6a488035
TO
119 <add>2.1</add>
120 </field>
121 <field>
122 <name>return_url_args</name>
123 <type>varchar</type>
124 <length>255</length>
125 <comment>Arguments to pass to return_url</comment>
1662d426
A
126 <html>
127 <label>Return URL Arguments</label>
128 </html>
6a488035
TO
129 <add>2.1</add>
130 </field>
131 <field>
8f785c9e 132 <name>component_id</name>
57e94608 133 <title>Component ID</title>
8f785c9e
AS
134 <type>int unsigned</type>
135 <comment>Component that this menu item belongs to</comment>
136 <add>2.1</add>
137 <pseudoconstant>
138 <table>civicrm_component</table>
139 <keyColumn>id</keyColumn>
140 <labelColumn>name</labelColumn>
141 </pseudoconstant>
614d72ec 142 <html>
e0991796 143 <type>Select</type>
57e94608 144 <label>Component</label>
614d72ec 145 </html>
6a488035
TO
146 </field>
147 <foreignKey>
8f069c03
EM
148 <name>component_id</name>
149 <table>civicrm_component</table>
150 <key>id</key>
151 <add>2.1</add>
6a488035
TO
152 </foreignKey>
153 <field>
8f069c03 154 <name>is_active</name>
f3ea5182 155 <title>Enabled?</title>
8f069c03
EM
156 <type>boolean</type>
157 <comment>Is this menu item active?</comment>
158 <add>2.1</add>
6a488035
TO
159 </field>
160 <field>
8f069c03 161 <name>is_public</name>
f3ea5182 162 <title>Public?</title>
8f069c03
EM
163 <type>boolean</type>
164 <comment>Is this menu accessible to the public?</comment>
165 <add>2.1</add>
6a488035
TO
166 </field>
167 <field>
8f069c03 168 <name>is_exposed</name>
f3ea5182 169 <title>Exposed?</title>
8f069c03
EM
170 <type>boolean</type>
171 <comment>Is this menu exposed to the navigation system?</comment>
172 <add>2.1</add>
6a488035
TO
173 </field>
174 <field>
8f069c03 175 <name>is_ssl</name>
f3ea5182 176 <title>Use SSL?</title>
8f069c03
EM
177 <type>boolean</type>
178 <comment>Should this menu be exposed via SSL if enabled?</comment>
179 <add>2.1</add>
6a488035
TO
180 </field>
181 <field>
8f069c03 182 <name>weight</name>
7ecddde4 183 <title>Order</title>
8f069c03
EM
184 <type>int</type>
185 <required>true</required>
186 <default>1</default>
187 <comment>Ordering of the menu items in various blocks.</comment>
188 <add>2.1</add>
6a488035
TO
189 </field>
190 <field>
8f069c03 191 <name>type</name>
f3ea5182 192 <title>Type</title>
8f069c03
EM
193 <type>int</type>
194 <required>true</required>
195 <default>1</default>
196 <comment>Drupal menu type.</comment>
197 <add>2.1</add>
6a488035
TO
198 </field>
199 <field>
8f069c03 200 <name>page_type</name>
f3ea5182 201 <title>Page Type</title>
8f069c03
EM
202 <type>int</type>
203 <required>true</required>
204 <default>1</default>
205 <comment>CiviCRM menu type.</comment>
206 <add>2.1</add>
6a488035
TO
207 </field>
208 <field>
8f069c03 209 <name>skipBreadcrumb</name>
f3ea5182 210 <title>Hide Breadcrumb?</title>
8f069c03
EM
211 <type>boolean</type>
212 <comment>skip this url being exposed to breadcrumb</comment>
213 <add>2.2</add>
6a488035 214 </field>
b44dc91e
TO
215 <field>
216 <name>module_data</name>
217 <title>Other menu data</title>
218 <type>text</type>
219 <comment>All other menu metadata not stored in other fields</comment>
220 <add>4.7</add>
221 </field>
6a488035 222</table>