@@ -147,35 +147,31 @@ $collections = array_merge($collections, [
147147 'label' => 'Custom Menu', // length of this string is limited due to dropdown menu width
148148 'options' => [
149149 [
150- 'type' => 'collection', // either collection or divider
150+ 'type' => 'collection', // either ' collection' or ' divider'
151151 'label' => 'hourly site stats past 24 hours', // string that is displayed in the dropdown menu
152- 'method' => 'stat_hourly_site', // the method/function in the API client class that is called
152+ 'method' => 'stat_hourly_site', // name of the method/function in the API client class that is called
153153 'params' => [(time() - (24 * 60 *60)) * 1000, time() * 1000], // an array containing the parameters that are passed to the method/function
154- 'key' => 'custom_0' // unique key for this menu option, may be required for future versions
155154 ],
156155 [
157156 'type' => 'collection',
158157 'label' => 'daily site stats past 31 days',
159158 'method' => 'stat_daily_site',
160159 'params' => [(time() - (31 * 24 * 60 *60)) * 1000, time() * 1000],
161- 'key' => 'custom_1'
162160 ],
163161 [
164162 'type' => 'divider', // dividers have no other properties
165163 ],
166164 [
167165 'type' => 'collection',
168166 'label' => 'enable the site LEDs',
169- 'method' => 'site_leds', // don't go wild when adding such calls, this example is simply to show the flexibility
170- 'params' => [true],
171- 'key' => 'custom_2'
167+ 'method' => 'site_leds', // don't go too wild when adding such calls, this example is simply to show the flexibility
168+ 'params' => [true]
172169 ],
173170 [
174171 'type' => 'collection',
175172 'label' => 'disable the site LEDs',
176- 'method' => 'site_leds', // don't go wild when adding such calls, this example is simply to show the flexibility
177- 'params' => [false],
178- 'key' => 'custom_3'
173+ 'method' => 'site_leds', // don't go too wild when adding such calls, this example is simply to show the flexibility
174+ 'params' => [false]
179175 ],
180176 ],
181177 ],
0 commit comments