]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - EVENTS.txt
05d172585549f413a4be6e3ed457ad38044f7d80
[quix0rs-gnu-social.git] / EVENTS.txt
1 InitializePlugin: a chance to initialize a plugin in a complete environment
2
3 CleanupPlugin: a chance to cleanup a plugin at the end of a program
4
5 StartPrimaryNav: Showing the primary nav menu
6 - $action: the current action
7
8 EndPrimaryNav: At the end of the primary nav menu
9 - $action: the current action
10
11 StartSecondaryNav: Showing the secondary nav menu
12 - $action: the current action
13
14 EndSecondaryNav: At the end of the secondary nav menu
15 - $action: the current action
16
17 StartShowStyles: Showing Style links; good place to add UA style resets
18 - $action: the current action
19
20 EndShowStyles: End showing Style links; good place to add custom styles
21 - $action: the current action
22
23 StartShowStatusNetStyles: Showing StatusNet Style links
24 - $action: the current action
25
26 EndShowStatusNetStyles: End showing StatusNet Style links;  good place to add handheld or JavaScript dependant styles
27 - $action: the current action
28
29 StartShowLaconicaStyles: backwards compatibility; deprecated
30 - $action: the current action
31
32 EndShowLaconicaStyles: backwards compatibility; deprecated
33 - $action: the current action
34
35 StartShowUAStyles: Showing custom User-Agent style links
36 - $action: the current action
37
38 EndShowUAStyles: End showing custom User-Agent links; good place to add user-agent (e.g., filter, -webkit, -moz) specific styles
39 - $action: the current action
40
41 StartShowScripts: Showing JavaScript links
42 - $action: the current action
43
44 EndShowScripts: End showing JavaScript links; good place to add custom
45                 links like Google Analytics
46 - $action: the current action
47
48 StartShowJQueryScripts: Showing JQuery script links (use this to link to e.g. Google mirrors)
49 - $action: the current action
50
51 EndShowJQueryScripts: End showing JQuery script links
52 - $action: the current action
53
54 StartShowStatusNetScripts: Showing StatusNet script links (use this to link to a CDN or something)
55 - $action: the current action
56
57 EndShowStatusNetScripts: End showing StatusNet script links
58 - $action: the current action
59
60 StartShowLaconicaScripts: backwards compatibility; deprecated
61 - $action: the current action
62
63 EndShowLaconicaScripts: backwards compatibility; deprecated
64 - $action: the current action
65
66 StartShowSections: Start the list of sections in the sidebar
67 - $action: the current action
68
69 EndShowSections: End the list of sections in the sidebar
70 - $action: the current action
71
72 StartShowHeader: Showing before the header container
73 - $action: the current action
74
75 EndShowHeader: Showing after the header container
76 - $action: the current action
77
78 StartShowFooter: Showing before the footer container
79 - $action: the current action
80
81 EndShowFooter: Showing after the footer container
82 - $action: the current action
83
84 StartShowContentBlock: Showing before the content container
85 - $action: the current action
86
87 EndShowContentBlock: Showing after the content container
88 - $action: the current action
89
90 StartNoticeSave: before inserting a notice (good place for content filters)
91 - $notice: notice being saved (no ID or URI)
92
93 EndNoticeSave: after inserting a notice and related code
94 - $notice: notice that was saved (with ID and URI)
95
96 StartShowLocalNavBlock: Showing the local nav menu
97 - $action: the current action
98
99 EndShowLocalNavBlock: At the end of the local nav menu
100 - $action: the current action
101
102 StartShowHTML: Chance to set document headers (e.g., content type, charset, language), DOCTYPE and html element properties
103 - $action: the current action
104
105 EndShowHTML: Showing after the html element
106 - $action: the current action
107
108 StartPublicGroupNav: Showing the public group nav menu
109 - $action: the current action
110
111 EndPublicGroupNav: At the end of the public group nav menu
112 - $action: the current action
113
114 StartSubGroupNav: Showing the subscriptions group nav menu
115 - $action: the current action
116
117 EndSubGroupNav: At the end of the subscriptions group nav menu
118 - $action: the current action
119
120 RouterInitialized: After the router instance has been initialized
121 - $m: the Net_URL_Mapper that has just been set up
122
123 StartLogout: Before logging out
124 - $action: the logout action
125
126 EndLogout: After logging out
127 - $action: the logout action
128
129 ArgsInitialized: After the argument array has been initialized
130 - $args: associative array of arguments, can be modified
131
132 StartAddressData: Allows the site owner to provide additional information about themselves for contact (e.g., tagline, email, location)
133 - $action: the current action
134
135 EndAddressData: At the end of <address>
136 - $action: the current action
137
138 StartLoginGroupNav: Before showing the login and register navigation menu
139 - $action: the current action
140
141 EndLoginGroupNav: After showing the login and register navigation menu
142 - $action: the current action
143
144 StartAccountSettingsNav: Before showing the account settings menu
145 - $action: the current action
146
147 EndAccountSettingsNav: After showing the account settings menu
148 - $action: the current action
149
150 Autoload: When trying to autoload a class
151 - $cls: the class being sought. A plugin might require_once the file for the class.
152
153 SensitiveAction: determines if an action is 'sensitive' and should use SSL
154 - $action: name of the action, like 'login'
155 - $sensitive: flag for whether this is a sensitive action
156
157 LoginAction: determines if an action is a 'login' action (OK for public view in private mode)
158 - $action: name of the action, like 'register'
159 - $login: flag for whether this is a login action
160
161 StartShowHead: called before showing the <head> element and children
162 - $action: action object being show
163
164 EndShowHead: called after showing the <head> element (and </head>)
165 - $action: action object being shown
166
167 StartShowBody: called before showing the <body> element and children
168 - $action: action object being shown
169
170 EndShowBody: called after showing the <body> element (and </body>)
171 - $action: action object being shown
172
173 StartHeadChildren: called before showing the children of <head> element (after <head> tag)
174 - $action: action object being shown
175
176 EndHeadChildren: called after showing the children of <head> element (before </head>)
177 - $action: action object being shown
178
179 StartPersonalGroupNav: beginning of personal group nav menu
180 - $action: action object being shown
181
182 EndPersonalGroupNav: end of personal group nav menu (good place to add a menu item)
183 - $action: action object being shown
184
185 StartEndHTML: just before the </html> tag
186 - $action: action object being shown
187
188 EndEndHTML: just after the </html> tag
189 - $action: action object being shown
190
191 StartShowDesign: just before showing a site, user, or group design
192 - $action: action object being shown
193
194 EndShowDesign: just after showing a site, user, or group design
195 - $action: action object being shown
196
197 StartShowExportData: just before showing the <div> with export data (feeds)
198 - $action: action object being shown
199
200 EndShowExportData: just after showing the <div> with export data (feeds)
201 - $action: action object being shown
202
203 StartShowPageNotice: just before showing the page notice (instructions or error)
204 - $action: action object being shown
205
206 EndShowPageNotice: just after showing the page notice (instructions or error)
207 - $action: action object being shown
208
209 StartShowPageTitle: just before showing the main h1 title of a page (only for registration)
210 - $action: action object being shown
211
212 StartProfileFormData: just before showing text entry fields on profile settings page
213 - $action: action object being shown
214
215 EndProfileFormData: just after showing text entry fields on profile settings page
216 - $action: action object being shown
217
218 StartProfileSaveForm: before starting to save a profile settings form
219 - $action: action object being shown
220
221 EndProfileSaveForm: after saving a profile settings form (after commit, no profile or user object!)
222 - $action: action object being shown
223
224 StartRegistrationFormData: just before showing text entry fields on registration page
225 - $action: action object being shown
226
227 EndRegistrationFormData: just after showing text entry fields on registration page
228 - $action: action object being shown
229
230 StartRegistrationTry: before validating and saving a new user
231 - $action: action object being shown
232
233 EndRegistrationTry: after saving a new user (note: no profile or user object!)
234 - $action: action object being shown
235
236 StartNewQueueManager: before trying to start a new queue manager; good for plugins implementing new queue manager classes
237 - $qm: empty queue manager to set
238
239 RedirectToLogin: event when we force a redirect to login (like when going to a settings page on a remembered login)
240 - $action: action object being shown
241 - $user: current user
242
243 StartLoadDoc: before loading a help doc (hook this to show your own documentation)
244 - $title: title of the document
245 - $output: HTML output to show
246
247 EndLoadDoc: after loading a help doc (hook this to modify other documentation)
248 - $title: title of the document
249 - $output: HTML output to show