EVENTS.txt 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500
  1. InitializePlugin: a chance to initialize a plugin in a complete environment
  2. CleanupPlugin: a chance to cleanup a plugin at the end of a program
  3. StartActionExecute: Right before the "prepare" call of the current Action
  4. - $action: the current Action object
  5. - &$args: array of arguments, referenced so you can modify the array
  6. EndActionExecute: Right after the "handle" call of the current Action
  7. - $action: the current Action object
  8. StartPrimaryNav: Showing the primary nav menu
  9. - $action: the current action
  10. EndPrimaryNav: At the end of the primary nav menu
  11. - $action: the current action
  12. StartSecondaryNav: Showing the secondary nav menu
  13. - $action: the current action
  14. EndSecondaryNav: At the end of the secondary nav menu
  15. - $action: the current action
  16. StartShowStyles: Showing Style links; good place to add UA style resets
  17. - $action: the current action
  18. EndShowStyles: End showing Style links; good place to add custom styles
  19. - $action: the current action
  20. StartShowStylesheets: Showing stylesheet links
  21. - $action: the current action
  22. EndShowStylesheets: End showing stylesheet links; good place to add handheld or JavaScript dependant styles
  23. - $action: the current action
  24. StartShowUAStyles: Showing custom User-Agent style links
  25. - $action: the current action
  26. EndShowUAStyles: End showing custom User-Agent links; good place to add user-agent (e.g., filter, -webkit, -moz) specific styles
  27. - $action: the current action
  28. StartShowScripts: Showing JavaScript links
  29. - $action: the current action
  30. EndShowScripts: End showing JavaScript links; good place to add custom
  31. links like Google Analytics
  32. - $action: the current action
  33. StartShowJQueryScripts: Showing JQuery script links (use this to link to e.g. Google mirrors)
  34. - $action: the current action
  35. EndShowJQueryScripts: End showing JQuery script links
  36. - $action: the current action
  37. StartShowStatusNetScripts: Showing StatusNet script links (use this to link to a CDN or something)
  38. - $action: the current action
  39. EndShowStatusNetScripts: End showing StatusNet script links
  40. - $action: the current action
  41. StartShowSections: Start the list of sections in the sidebar
  42. - $action: the current action
  43. EndShowSections: End the list of sections in the sidebar
  44. - $action: the current action
  45. StartShowHeader: Showing before the header container
  46. - $action: the current action
  47. EndShowHeader: Showing after the header container
  48. - $action: the current action
  49. StartShowFooter: Showing before the footer container
  50. - $action: the current action
  51. EndShowFooter: Showing after the footer container
  52. - $action: the current action
  53. StartShowContentBlock: Showing before the content container
  54. - $action: the current action
  55. EndShowContentBlock: Showing after the content container
  56. - $action: the current action
  57. StartShowAside: Showing before the Aside container
  58. - $action: the current action
  59. EndShowAside: Showing after the Aside container
  60. - $action: the current action
  61. StartShowNoticeFormData: Showing before the notice form data
  62. - $action: the current action
  63. EndShowNoticeFormData: Showing after the notice form data
  64. - $action: the current action
  65. StartNoticeSave: before inserting a notice (good place for content filters)
  66. - $notice: notice being saved (no ID or URI)
  67. EndNoticeSave: after inserting a notice and related code
  68. - $notice: notice that was saved (with ID and URI)
  69. StartShowLocalNavBlock: Showing the local nav menu
  70. - $action: the current action
  71. EndShowLocalNavBlock: At the end of the local nav menu
  72. - $action: the current action
  73. StartShowHTML: Chance to set document headers (e.g., content type, charset, language), DOCTYPE and html element properties
  74. - $action: the current action
  75. EndShowHTML: Showing after the html element
  76. - $action: the current action
  77. StartPublicGroupNav: Showing the public group nav menu
  78. - $menu: the menu widget; use $menu->action for output
  79. EndPublicGroupNav: At the end of the public group nav menu
  80. - $menu: the menu widget; use $menu->action for output
  81. StartSubGroupNav: Showing the subscriptions group nav menu
  82. - $menu: the menu widget; use $menu->action for output
  83. EndSubGroupNav: At the end of the subscriptions group nav menu
  84. - $menu: the menu widget; use $menu->action for output
  85. StartInitializeRouter: Before the router instance has been initialized; good place to add routes
  86. - $m: the Net_URL_Mapper that has just been set up
  87. RouterInitialized: After the router instance has been initialized
  88. - $m: the Net_URL_Mapper that has just been set up
  89. StartLogout: Before logging out
  90. - $action: the logout action
  91. EndLogout: After logging out
  92. - $action: the logout action
  93. ArgsInitialize: After the argument array has been initialized
  94. - $args: associative array of arguments, can be modified
  95. StartAddressData: Allows the site owner to provide additional information about themselves for contact (e.g., tagline, email, location)
  96. - $action: the current action
  97. EndAddressData: At the end of <address>
  98. - $action: the current action
  99. StartShowSiteNotice: Before showing site notice
  100. - $action: the current action
  101. EndShowSiteNotice: After showing site notice
  102. - $action: the current action
  103. StartLoginGroupNav: Before showing the login and register navigation menu
  104. - $action: the current action
  105. EndLoginGroupNav: After showing the login and register navigation menu
  106. - $action: the current action
  107. StartAccountSettingsNav: Before showing the account settings menu
  108. - $action: the current action
  109. EndAccountSettingsNav: After showing the account settings menu
  110. - $action: the current action
  111. StartAccountSettingsProfileMenuItem: Before showing the Profile menu item
  112. - $widget: AccountSettingsNav instance being shown
  113. EndAccountSettingsProfileMenuItem: After showing the Profile menu item
  114. - $widget: AccountSettingsNav instance being shown
  115. StartAccountSettingsAvatarMenuItem: Before showing the Avatar menu item
  116. - $widget: AccountSettingsNav instance being shown
  117. EndAccountSettingsAvatarMenuItem: After showing the Avatar menu item
  118. - $widget: AccountSettingsNav instance being shown
  119. StartAccountSettingsPasswordMenuItem: Before showing the Password menu item
  120. - $widget: AccountSettingsNav instance being shown
  121. EndAccountSettingsPasswordMenuItem: After showing the Password menu item
  122. - $widget: AccountSettingsNav instance being shown
  123. StartAccountSettingsEmailMenuItem: Before showing the Email menu item
  124. - $widget: AccountSettingsNav instance being shown
  125. EndAccountSettingsEmailMenuItem: After showing the Email menu item
  126. - $widget: AccountSettingsNav instance being shown
  127. StartAccountSettingsDesignMenuItem: Before showing the Design menu item
  128. - $widget: AccountSettingsNav instance being shown
  129. EndAccountSettingsDesignMenuItem: After showing the Design menu item
  130. - $widget: AccountSettingsNav instance being shown
  131. StartAccountSettingsOtherMenuItem: Before showing the Other menu item
  132. - $widget: AccountSettingsNav instance being shown
  133. EndAccountSettingsOtherMenuItem: After showing the Other menu item
  134. - $widget: AccountSettingsNav instance being shown
  135. Autoload: When trying to autoload a class
  136. - $cls: the class being sought. A plugin might require_once the file for the class.
  137. SensitiveAction: determines if an action is 'sensitive' and should use SSL
  138. - $action: name of the action, like 'login'
  139. - $sensitive: flag for whether this is a sensitive action
  140. LoginAction: determines if an action is a 'login' action (OK for public view in private mode)
  141. - $action: name of the action, like 'register'
  142. - $login: flag for whether this is a login action
  143. StartShowHead: called before showing the <head> element and children
  144. - $action: action object being show
  145. EndShowHead: called after showing the <head> element (and </head>)
  146. - $action: action object being shown
  147. StartShowBody: called before showing the <body> element and children
  148. - $action: action object being shown
  149. EndShowBody: called after showing the <body> element (and </body>)
  150. - $action: action object being shown
  151. StartPersonalGroupNav: beginning of personal group nav menu
  152. - $menu: Menu list object being shown
  153. - $target: Profile for whom it is shown
  154. - $scoped: Profile of currently logged in user (or null)
  155. EndPersonalGroupNav: end of personal group nav menu (good place to add a menu item)
  156. - $action: action object being shown
  157. StartGroupGroupNav: Showing the group nav menu
  158. - $action: the current action
  159. EndGroupGroupNav: At the end of the group nav menu
  160. - $action: the current action
  161. StartEndHTML: just before the </html> tag
  162. - $action: action object being shown
  163. EndEndHTML: just after the </html> tag
  164. - $action: action object being shown
  165. FinalAction: After prepare() (and possible handle) in Action class.
  166. - $status: result of "prepare" call on action
  167. - $action: Action that is currently running
  168. StartShowDesign: just before showing a site, user, or group design
  169. - $action: action object being shown
  170. EndShowDesign: just after showing a site, user, or group design
  171. - $action: action object being shown
  172. StartShowExportData: just before showing the <div> with export data (feeds)
  173. - $action: action object being shown
  174. EndShowExportData: just after showing the <div> with export data (feeds)
  175. - $action: action object being shown
  176. StartShowNoticeItem: just before showing the notice item
  177. - $item: The NoticeListItem object being shown
  178. EndShowNoticeItem: just after showing the notice item
  179. - $item: the NoticeListItem object being shown
  180. StartShowNoticeItemNotice: just before outputting the "top" notice part of a NoticeListItem to HTML
  181. - $item: The NoticeListItem object being shown
  182. EndShowNoticeItemNotice: just after outputting the "top" notice part of a NoticeListItem to HTML
  183. - $item: The NoticeListItem object being shown
  184. StartShowNoticeContent: just before outputting the content part of a Notice
  185. - $stored: The Notice object
  186. - $out: HTMLOutputter for writing to
  187. - $scoped: optional Profile object for permission scoping
  188. EndShowNoticeContent: just after outputting the content part of a Notice, plugins must call this manually
  189. - $stored: The Notice object
  190. - $out: HTMLOutputter for writing to
  191. - $scoped: optional Profile object for permission scoping
  192. StartShowNoticeInfo: just before showing notice info
  193. - $item: The NoticeListItem object being shown
  194. EndShowNoticeInfo: just after showing notice info
  195. - $item: The NoticeListItem object being shown
  196. StartShowNoticeOptions: just before showing notice options like fave, repeat, etc.
  197. - $item: the NoticeListItem object being shown
  198. EndShowNoticeOptions: just after showing notice options like fave, repeat, etc.
  199. - $item: the NoticeListItem object being shown
  200. StartShowPageNotice: just before showing the page notice (instructions or error)
  201. - $action: action object being shown
  202. EndShowPageNotice: just after showing the page notice (instructions or error)
  203. - $action: action object being shown
  204. StartShowPageTitle: just before showing the main h1 title of a page (only for registration)
  205. - $action: action object being shown
  206. StartProfileFormData: just before showing text entry fields on profile settings page
  207. - $action: action object being shown
  208. EndProfileFormData: just after showing text entry fields on profile settings page
  209. - $action: action object being shown
  210. StartProfileSaveForm: before starting to save a profile settings form
  211. - $action: action object being shown
  212. EndProfileSaveForm: after saving a profile settings form (after commit, no profile or user object!)
  213. - $action: action object being shown
  214. StartEmailFormData: just before showing form input fields on email settings page
  215. - $action: Action object being shown
  216. - $scoped: Profile for whom settings are being configured
  217. EndEmailFormData: just after showing form input fields on email settings page
  218. - $action: action object being shown
  219. - $scoped: Profile for whom settings are being configured
  220. StartEmailSaveForm: before starting to save a email settings form
  221. - $action: action object being shown
  222. - $scoped: Profile user having their email settings saved
  223. EndEmailSaveForm: after saving a email settings form (after commit)
  224. - $action: action object being shown
  225. - $scoped: Profile user having their email settings saved
  226. StartRegistrationFormData: just before showing text entry fields on registration page
  227. - $action: action object being shown
  228. EndRegistrationFormData: just after showing text entry fields on registration page
  229. - $action: action object being shown
  230. StartRegistrationTry: before validating and saving a new user
  231. - $action: action object being shown
  232. EndRegistrationTry: after saving a new user (note: no profile or user object!)
  233. - $action: action object being shown
  234. StartAvatarFormData: before displaying avatar form
  235. - $action: action object being shown
  236. EndAvatarFormData: after displaying avatar form
  237. - $action: action object being shown
  238. StartAvatarSaveForm: before saving the avatar
  239. - $action: action object being shown
  240. EndAvatarSaveForm: after saving the avatar
  241. - $action: action object being shown
  242. StartNewQueueManager: before trying to start a new queue manager; good for plugins implementing new queue manager classes
  243. - $qm: empty queue manager to set
  244. RedirectToLogin: event when we force a redirect to login (like when going to a settings page on a remembered login)
  245. - $action: action object being shown
  246. - $user: current user
  247. StartLoadDoc: before loading a help doc (hook this to show your own documentation)
  248. - $title: title of the document
  249. - $output: HTML output to show
  250. EndLoadDoc: after loading a help doc (hook this to modify other documentation)
  251. - $title: title of the document
  252. - $output: HTML output to show
  253. StartApiRss: after the rss <channel> element is started
  254. - $action: action object being shown
  255. StartApiAtom: after the <feed> element is started
  256. - $action: action object being shown
  257. StartEnqueueNotice: about to add a notice to the queues (good place to add a new transport)
  258. - $notice: the notice being added
  259. - &$transports: modifiable list of transports (as strings) to queue for
  260. EndEnqueueNotice: after adding a notice to the queues
  261. - $notice: the notice being added
  262. - $transports: modifiable list of transports to use
  263. UnqueueHandleNotice: Handle a notice when no queue manager is available
  264. - $notice: the notice to handle
  265. - $queue: the "queue" that is being executed
  266. GetValidDaemons: Just before determining which daemons to run
  267. - &$daemons: modifiable list of daemon scripts to run, filenames relative to scripts/
  268. HandleQueuedNotice: Handle a queued notice at queue time (or immediately if no queue)
  269. - &$notice: notice to handle
  270. StartHtmlElement: Reight before outputting the HTML element - allows plugins to add namespaces
  271. - $action: the current action
  272. - &$attrs: attributes for the HTML element
  273. EndHtmlElement: Right after outputting the HTML element
  274. - $action: the current action
  275. - &$attrs: attributes for the HTML element
  276. StartShowHeadElements: Right after the <head> tag
  277. - $action: the current action
  278. EndShowHeadElements: Right before the </head> tag; put <script>s here if you need them in <head>
  279. - $action: the current action
  280. CheckSchema: chance to check the schema
  281. StartProfileRemoteSubscribe: Before showing the link to remote subscription
  282. - $userprofile: UserProfile widget
  283. - &$profile: the profile being shown
  284. EndProfileRemoteSubscribe: After showing the link to remote subscription
  285. - $userprofile: UserProfile widget
  286. - &$profile: the profile being shown
  287. StartGroupSubscribe: Before showing the link to remote subscription
  288. - $action: the current action
  289. - $group: the group being shown
  290. EndGroupSubscribe: After showing the link to remote subscription
  291. - $action: the current action
  292. - $group: the group being shown
  293. StartProfilePageProfileSection: Starting to show the section of the
  294. profile page with the actual profile data;
  295. hook to prevent showing the profile (e.g.)
  296. - $userprofile: UserProfile widget
  297. - &$profile: the profile being shown
  298. StartProfilePageProfileElements: inside the section, before the first
  299. element; prepend elements here
  300. - $userprofile: UserProfile widget
  301. - &$profile: the profile being shown
  302. EndProfilePageProfileElements: inside the section, after the last element;
  303. append elements here
  304. - $userprofile: UserProfile widget
  305. - &$profile: the profile being shown
  306. EndProfilePageProfileSection: After showing the section of the profile
  307. page with the profile elements
  308. - $userprofile: UserProfile widget
  309. - &$profile: the profile being shown
  310. StartProfilePageActionsSection: Starting to show the section of the
  311. profile page with action links; hook
  312. to hide them (for example)
  313. - $userprofile: UserProfile widget
  314. - &$profile: the profile being shown
  315. StartProfilePageActionsElements: inside the list, before the first
  316. element; prepend elements here
  317. - $userprofile: UserProfile widget
  318. - &$profile: the profile being shown
  319. EndProfilePageActionsElements: inside the list, after the last element;
  320. append elements here
  321. - $userprofile: UserProfile widget
  322. - &$profile: the profile being shown
  323. EndProfilePageActionsSection: After showing the section of the profile
  324. page with the entity actions
  325. - $userprofile: UserProfile widget
  326. - &$profile: the profile being shown
  327. StartProfilePageAvatar: before showing the avatar on the profile page
  328. - $userprofile: UserProfile widget
  329. - &$profile: the profile being shown
  330. EndProfilePageAvatar: after showing the avatar on the profile page
  331. - $userprofile: UserProfile widget
  332. - &$profile: the profile being shown
  333. StartProfilePageNickname: before showing the nickname on the profile page
  334. - $userprofile: UserProfile widget
  335. - &$profile: the profile being shown
  336. EndProfilePageNickname: after showing the nickname on the profile page
  337. - $userprofile: UserProfile widget
  338. - &$profile: the profile being shown
  339. StartProfilePageFullName: before showing the fullname on the profile page
  340. - $userprofile: UserProfile widget
  341. - &$profile: the profile being shown
  342. EndProfilePageFullName: after showing the fullname on the profile page
  343. - $userprofile: UserProfile widget
  344. - &$profile: the profile being shown
  345. StartProfilePageLocation: before showing the location on the profile page
  346. - $userprofile: UserProfile widget
  347. - &$profile: the profile being shown
  348. EndProfilePageLocation: after showing the location on the profile page
  349. - $userprofile: UserProfile widget
  350. - &$profile: the profile being shown
  351. StartProfilePageHomepage: before showing the homepage link on the profile page
  352. - $userprofile: UserProfile widget
  353. - &$profile: the profile being shown
  354. EndProfilePageHomepage: after showing the homepage on the profile page
  355. - $userprofile: UserProfile widget
  356. - &$profile: the profile being shown
  357. StartProfilePageBio: before showing the bio on the profile page
  358. - $userprofile: UserProfile widget
  359. - &$profile: the profile being shown
  360. EndProfilePageBio: after showing the bio on the profile page
  361. - $userprofile: UserProfile widget
  362. - &$profile: the profile being shown
  363. StartProfilePageProfileTags: before showing the tags on the profile page
  364. - $userprofile: UserProfile widget
  365. - &$profile: the profile being shown
  366. EndProfilePageProfileTags: after showing the tags on the profile page
  367. - $userprofile: UserProfile widget
  368. - &$profile: the profile being shown
  369. StartProfileList: when starting a list of profiles (before <ul>)
  370. - $profilelist: ProfileList widget, with $profile, $action, and $out
  371. EndProfileList: when ending a list of profiles (after </ul>)
  372. - $profilelist: ProfileList widget
  373. StartProfileListItem: when starting to show a profile list item
  374. - $item: ProfileListItem widget
  375. EndProfileListItem: after showing a profile list item
  376. - $item: ProfileListItem widget
  377. StartProfileListItemProfile: the profile data part of the item
  378. - $item: ProfileListItem widget
  379. EndProfileListItemProfile: the profile data part of the item
  380. - $item: ProfileListItem widget
  381. StartProfileListItemActions: the actions (buttons) for an item
  382. - $item: ProfileListItem widget
  383. EndProfileListItemActions: the actions (buttons) for an item
  384. - $item: ProfileListItem widget
  385. StartProfileListItemProfileElements: inside the <div>
  386. - $item: ProfileListItem widget
  387. EndProfileListItemProfileElements: inside the <div>
  388. - $item: ProfileListItem widget
  389. StartProfileListItemAvatar: Showing a profile list avatar
  390. - $item: ProfileListItem widget
  391. EndProfileListItemAvatar: Showing a profile list avatar
  392. - $item: ProfileListItem widget
  393. StartProfileListItemFullName: Showing the profile list full name
  394. - $item: ProfileListItem widget
  395. EndProfileListItemFullName: Showing the profile list full name
  396. - $item: ProfileListItem widget
  397. StartProfileListItemLocation: Showing the profile list location
  398. - $item: ProfileListItem widget
  399. EndProfileListItemLocation: Showing the profile list location
  400. - $item: ProfileListItem widget
  401. StartProfileListItemHomepage: Showing the profile list homepage
  402. - $item: ProfileListItem widget
  403. EndProfileListItemHomepage: Showing the profile list homepage
  404. - $item: ProfileListItem widget
  405. StartProfileListItemBio: Showing the profile list bio
  406. - $item: ProfileListItem widget
  407. EndProfileListItemBio: Showing the profile list bio
  408. - $item: ProfileListItem widget
  409. StartProfileListItemActionElements: Showing the profile list actions (prepend a button here, or replace all buttons)
  410. - $item: ProfileListItem widget
  411. EndProfileListItemActionElements: Showing profile list actions (append a button here)
  412. - $item: ProfileListItem widget
  413. StartUserXRDS: Start XRDS output (right after the opening XRDS tag)
  414. - $action: the current action
  415. - &$xrdsoutputter - XRDSOutputter object to write to
  416. EndUserXRDS: End XRDS output (right before the closing XRDS tag)
  417. - $action: the current action
  418. - &$xrdsoutputter - XRDSOutputter object to write to
  419. StartPublicXRDS: Start XRDS output (right after the opening XRDS tag)
  420. - $action: the current action
  421. - &$xrdsoutputter - XRDSOutputter object to write to
  422. EndPublicXRDS: End XRDS output (right before the closing XRDS tag)
  423. - $action: the current action
  424. - &$xrdsoutputter - XRDSOutputter object to write to
  425. StartCheckPassword: Check a username/password
  426. - $nickname: The nickname to check
  427. - $password: The password to check
  428. - &$authenticatedUser: set to User object if credentials match a user.
  429. EndCheckPassword: After checking a username/password pair
  430. - $nickname: The nickname that was checked
  431. - $password: The password that was checked
  432. - $authenticatedUser: User object if credentials match a user, else null.
  433. StartChangePassword: Before changing a password
  434. - Profile $target: The profile of the User that is changing password
  435. - $oldpassword: the user's old password
  436. - $newpassword: the desired new password
  437. EndChangePassword: After changing a password
  438. - Profile $target: The profile of the User that just changed its password
  439. StartHashPassword: Generate a hashed version of the password (like a salted crypt)
  440. - &$hashed: Hashed version of the password, later put in the database
  441. - $password: The password that should be hashed
  442. - $profile: Profile that this password and hash belongs to. Can be null.
  443. StartSetUser: Before setting the currently logged in user
  444. - $user: user
  445. EndSetUser: After setting the currently logged in user
  446. - $user: user
  447. StartSetApiUser: Before setting the current API user
  448. - &$user: user, can be set during event handling (return false to stop processing)
  449. EndSetApiUser: After setting the current API user
  450. - $user: user, only called if this is an actual user
  451. StartHasRole: Before determing if the a profile has a given role
  452. - $profile: profile in question
  453. - $name: name of the role in question
  454. - &$has_role: does this profile have the named role?
  455. EndHasRole: Before determing if the a profile has a given role
  456. - $profile: profile in question
  457. - $name: name of the role in question
  458. - $has_role: does this profile have the named role?
  459. UserDeleteRelated: Specify additional tables to delete entries from when deleting users
  460. - $user: User object
  461. - &$related: array of DB_DataObject class names to delete entries on matching user_id.
  462. GetUrlShorteners: Specify URL shorteners that are available for use
  463. - &$shorteners: append your shortener to this array like so: $shorteners[shortenerName]=array('display'=>display, 'freeService'=>boolean)
  464. StartShortenUrl: About to shorten a URL
  465. - $url: url to be shortened
  466. - $shortenerName: name of the requested shortener
  467. - &$shortenedUrl: short version of the url
  468. EndShortenUrl: After a URL has been shortened
  469. - $url: url to be shortened
  470. - $shortenerName: name of the requested shortener
  471. - $shortenedUrl: short version of the url
  472. StartCssLinkElement: Before a <link rel="stylesheet"..> element is written
  473. - $action
  474. - &$src
  475. - &$theme
  476. - &$media
  477. EndCssLinkElement: After a <link rel="stylesheet"..> element is written
  478. - $action
  479. - $src
  480. - $theme
  481. - $media
  482. StartStyleElement: Before a <style...> element is written
  483. - $action
  484. - &$code
  485. - &$type
  486. - &$media
  487. EndStyleElement: After a <style...> element is written
  488. - $action
  489. - $code
  490. - $type
  491. - $media
  492. StartScriptElement: Before a <script...> element is written
  493. - $action
  494. - &$src
  495. - &$type
  496. EndScriptElement: After a <script...> element is written
  497. - $action
  498. - $src
  499. - $type
  500. StartInlineScriptElement: Before a <script...> element is written
  501. - $action
  502. - &$code
  503. - &$type
  504. EndInlineScriptElement: After a <script...> element is written
  505. - $action
  506. - $code
  507. - $type
  508. StartLog: Before writing to the logs
  509. - &$priority
  510. - &$msg
  511. - &$filename
  512. EndLog: After writing to the logs
  513. - $priority
  514. - $msg
  515. - $filename
  516. StartBlockProfile: when we're about to block
  517. - $user: the person doing the block
  518. - $profile: the person getting blocked, can be remote
  519. EndBlockProfile: when a block has succeeded
  520. - $user: the person doing the block
  521. - $profile: the person blocked, can be remote
  522. StartUnblockProfile: when we're about to unblock
  523. - $user: the person doing the unblock
  524. - $profile: the person getting unblocked, can be remote
  525. EndUnblockProfile: when an unblock has succeeded
  526. - $user: the person doing the unblock
  527. - $profile: the person unblocked, can be remote
  528. StartSubscribe: when a subscription is starting
  529. - $profile: Profile that is subscribing
  530. - $other: Profile that is being subscribed to
  531. EndSubscribe: when a subscription is finished
  532. - $profile: Profile that is subscribing
  533. - $other: Profile that is being subscribed to
  534. StartUnsubscribe: when an unsubscribe is starting
  535. - $profile: Profile that is unsubscribing
  536. - $other: Profile that is being unsubscribed from
  537. EndUnsubscribe: when an unsubscribe is done
  538. - $profile: Profile that is unsubscribing
  539. - $other: Profile that is being unsubscribed from
  540. StartJoinGroup: when a user is joining a group
  541. - $group: the group being joined
  542. - $profile: the local or remote user joining
  543. EndJoinGroup: when a user finishes joining a group
  544. - $group: the group being joined
  545. - $profile: the local or remote user joining
  546. StartLeaveGroup: when a user is leaving a group
  547. - $group: the group being left
  548. - $profile: the local or remote user leaving
  549. EndLeaveGroup: when a user has left a group
  550. - $group: the group being left
  551. - $profile: the local or remote user leaving
  552. StartShowContentLicense: Showing the default license for content
  553. - $action: the current action
  554. EndShowContentLicense: Showing the default license for content
  555. - $action: the current action
  556. GetImTransports: Get IM transports that are available
  557. - &$transports: append your transport to this array like so: $transports[transportName]=array('display'=>display)
  558. NormalizeImScreenname: Normalize an IM screenname
  559. - $transport: transport the screenname is on
  560. - &$screenname: screenname to be normalized
  561. ValidateImScreenname: Validate an IM screenname
  562. - $transport: transport the screenname is on
  563. - $screenname: screenname to be validated
  564. - $valid: is the screenname valid?
  565. SendImConfirmationCode: Send a confirmation code to confirm a user owns an IM screenname
  566. - $transport: transport the screenname exists on
  567. - $screenname: screenname being confirmed
  568. - $code: confirmation code for confirmation URL
  569. - $user: user requesting the confirmation
  570. StartUserRegister: When a new user is being registered
  571. - $profile: Profile object with new profile data (no ID yet)
  572. EndUserRegister: When a new user has been registered
  573. - $profile: Profile object with new profile data
  574. StartRobotsTxt: Before outputting the robots.txt page
  575. - &$action: RobotstxtAction being shown
  576. EndRobotsTxt: After the default robots.txt page (good place for customization)
  577. - &$action: RobotstxtAction being shown
  578. StartGetProfileUri: When determining the canonical URI for a given profile
  579. - $profile: the current profile
  580. - &$uri: the URI
  581. EndGetProfileUri: After determining the canonical URI for a given profile
  582. - $profile: the current profile
  583. - &$uri: the URI
  584. StartGetProfileAcctUri: Get the acct: URI for a Profile (or throw ProfileNoAcctUriException)
  585. - $profile: Profile of user we want to get acct: URI for
  586. - &$acct: string with the resulting acct: uri
  587. EndGetProfileAcctUri: Last attempts to get the acct: URI for a Profile (or throw ProfileNoAcctUriException)
  588. - $profile: Profile of user we want to get acct: URI for
  589. - &$acct: string with the resulting acct: uri
  590. StartFindMentions: start finding mentions in a block of text
  591. - $sender: sender profile
  592. - $text: plain text version of the notice
  593. - &$mentions: mentions found so far. Array of arrays; each array
  594. has 'mentioned' (array of mentioned profiles), 'url' (url to link as),
  595. 'title' (title of the link), 'position' (position of the text to
  596. replace), 'text' (text to replace)
  597. EndFindMentions: end finding mentions in a block of text
  598. - $sender: sender profile
  599. - $text: plain text version of the notice
  600. - &$mentions: mentions found so far. Array of arrays; each array
  601. has 'mentioned' (array of mentioned profiles), 'url' (url to link as),
  602. 'title' (title of the link), 'position' (position of the text to
  603. replace), 'text' (text to replace)
  604. StartShowSubscriptionsContent: before showing the subscriptions content
  605. - $action: the current action
  606. EndShowSubscriptionsContent: after showing the subscriptions content
  607. - $action: the current action
  608. StartShowUserGroupsContent: before showing the user groups content
  609. - $action: the current action
  610. EndShowUserGroupsContent: after showing the user groups content
  611. - $action: the current action
  612. StartShowAllContent: before showing the all (you and friends) content
  613. - $action: the current action
  614. EndShowAllContent: after showing the all (you and friends) content
  615. - $action: the current action
  616. StartShowSubscriptionsMiniList: at the start of subscriptions mini list
  617. - $action: the current action
  618. EndShowSubscriptionsMiniList: at the end of subscriptions mini list
  619. - $action: the current action
  620. StartShowGroupsMiniList: at the start of groups mini list
  621. - $action: the current action
  622. EndShowGroupsMiniList: at the end of groups mini list
  623. - $action: the current action
  624. StartDeleteUserForm: starting the data in the form for deleting a user
  625. - $action: action being shown
  626. - $user: user being deleted
  627. EndDeleteUserForm: Ending the data in the form for deleting a user
  628. - $action: action being shown
  629. - $user: user being deleted
  630. StartDeleteUser: handling the post for deleting a user
  631. - $action: action being shown
  632. - $user: user being deleted
  633. EndDeleteUser: handling the post for deleting a user
  634. - $action: action being shown
  635. - $user: user being deleted
  636. StartNoticeAsActivity: before converting a notice to an activity
  637. - $notice: notice being converted
  638. - &$activity: initially empty activity
  639. EndNoticeAsActivity: after converting a notice to an activity (good time to customize!)
  640. - $notice: notice being converted
  641. - &$activity: activity, now more-or-less full
  642. StartNoticeSaveWeb: before saving a notice through the Web interface
  643. - $action: action being executed (instance of NewNoticeAction)
  644. - &$authorId: integer ID of the author
  645. - &$text: text of the notice
  646. - &$options: additional options (location, replies, etc.)
  647. EndNoticeSaveWeb: after saving a notice through the Web interface
  648. - $action: action being executed (instance of NewNoticeAction)
  649. - $notice: notice that was saved
  650. StartRssEntryArray: at the start of copying a notice to an array
  651. - $notice: the notice being copied
  652. - &$entry: the entry (empty at beginning)
  653. EndRssEntryArray: at the end of copying a notice to an array
  654. - $notice: the notice being copied
  655. - &$entry: the entry, with all the fields filled up
  656. NoticeDeleteRelated: at the beginning of deleting related fields to a notice
  657. - $notice: notice being deleted
  658. FileDeleteRelated: at the beginning of deleting related fields to a File
  659. - $notice: File being deleted
  660. StartShowHeadTitle: when beginning to show the <title> element
  661. - $action: action being shown
  662. EndShowHeadTitle: when done showing the <title>
  663. - $action: action being shown
  664. StartShowPageTitle: when beginning to show the page title <h1>
  665. - $action: action being shown
  666. EndShowPageTitle: when done showing the page title <h1>
  667. - $action: action being shown
  668. StartDeleteOwnNotice: when a user starts to delete their own notice
  669. - $user: the user doing the delete
  670. - $notice: the notice being deleted
  671. EndDeleteOwnNotice: when a user has deleted their own notice
  672. - $user: the user doing the delete
  673. - $notice: the notice being deleted
  674. StartShowFeedLinkList: before showing the feed list in the sidebar
  675. - $action: action being executed
  676. - $feeds: list of feeds to show
  677. EndShowFeedLinkList: after showing the feed list in the sidebar
  678. - $action: action being executed
  679. - $feeds: list of feeds shown
  680. StartShowFeedLink: before showing an individual feed item
  681. - $action: action being executed
  682. - $feed: feed to show
  683. EndShowFeedLink: after showing an individual feed
  684. - $action: action being executed
  685. - $feed: feed to show
  686. StartShowNoticeForm: before showing the notice form (before <form>)
  687. - $action: action being executed
  688. EndShowNoticeForm: after showing the notice form (after <form>)
  689. - $action: action being executed
  690. StartShowEntryForms: microapp entry form tab data
  691. - &$tabs: tab assoc array with 'tag' => (title, href to create new entry)
  692. StartGrantRole: when a role is being assigned
  693. - $profile: profile that will have the role
  694. - $role: string name of the role
  695. EndGrantRole: when a role has been successfully assigned
  696. - $profile: profile that will have the role
  697. - $role: string name of the role
  698. StartRevokeRole: when a role is being revoked
  699. - $profile: profile that will lose the role
  700. - $role: string name of the role
  701. EndRevokeRole: when a role has been revoked
  702. - $profile: profile that lost the role
  703. - $role: string name of the role
  704. StartAtomPubNewActivity: When a new activity comes in through Atom Pub API
  705. - &$activity: received activity
  706. - $profile: profile of the user publishing the entry
  707. - &$notice: notice created; initially null, can be set
  708. EndAtomPubNewActivity: When a new activity comes in through Atom Pub API
  709. - $activity: received activity
  710. - $profile: profile of the user publishing the entry
  711. - $notice: notice that was created
  712. AdminPanelCheck: When checking whether the current user can access a given admin panel
  713. - $name: Name of the admin panel
  714. - &$isOK: Boolean whether the user is allowed to use the panel
  715. StartAdminPanelNav: Before displaying the first item in the list of admin panels
  716. - $nav The AdminPanelNav widget
  717. EndAdminPanelNav: After displaying the last item in the list of admin panels
  718. - $nav The AdminPanelNav widget
  719. StartActivityObjectFromNotice: When converting a notice to an activity:object
  720. - $notice: The notice being converted
  721. - &$object: The resulting object. Fill this and return false to override defaults.
  722. EndActivityObjectFromNotice: After converting a notice to an activity:object
  723. - $notice: The notice being converted
  724. - &$object: The resulting object. Can be edited
  725. StartActivityObjectFromProfile: When converting a profile to an activity:object
  726. - $profile: The profile being converted
  727. - &$object: The (empty) object. Fill it up and return false to override defaults.
  728. EndActivityObjectFromProfile: After converting a profile to an activity:object
  729. - $profile: The profile being converted
  730. - &$object: The finished object. Can be tweaked
  731. StartActivityObjectFromGroup: When converting a group to an activity:object
  732. - $group: The group being converted
  733. - &$object: The (empty) object. Fill and return false to override.
  734. EndActivityObjectFromGroup: After converting a group to an activity:object
  735. - $group: The group being converted
  736. - &$object: The finished object. Tweak as needed.
  737. StartImportActivity: when we start to import an activity
  738. - $user: User to make the author import
  739. - $author: Author of the feed; good for comparisons
  740. - $activity: The current activity
  741. - $trusted: How "trusted" the process is
  742. - &$done: Return value; whether to continue
  743. EndImportActivity: when we finish importing an activity
  744. - $user: User to make the author import
  745. - $author: Author of the feed; good for comparisons
  746. - $activity: The current activity
  747. - $trusted: How "trusted" the process is
  748. StartProfileSettingsActions: when we're showing account-management action list
  749. - $action: Action being shown (use for output)
  750. EndProfileSettingsActions: when we're showing account-management action list
  751. - $action: Action being shown (use for output)
  752. StartOpenNoticeListItemElement: Before the opening <li> of a notice list element
  753. - $nli: The notice list item being shown
  754. EndOpenNoticeListItemElement: After the opening <li> of a notice list element
  755. - $nli: The notice list item being shown
  756. StartCloseNoticeListItemElement: Before the closing </li> of a notice list element
  757. - $nli: The notice list item being shown
  758. EndCloseNoticeListItemElement: After the closing </li> of a notice list element
  759. - $nli: The notice list item being shown
  760. StartGroupEditFormData: Beginning the group edit form entries
  761. - $form: The form widget being shown
  762. EndGroupEditFormData: Ending the group edit form entries
  763. - $form: The form widget being shown
  764. StartGroupSave: After initializing but before saving a group
  765. - &$group: group about to be saved
  766. EndGroupSave: After saving a group, aliases, and first member
  767. - $group: group that was saved
  768. StartInterpretCommand: Before running a command
  769. - $cmd: First word in the string, 'foo' in 'foo argument'
  770. - $arg: Argument, if any, like 'argument' in 'foo argument'
  771. - $user: User who issued the command
  772. - &$result: Resulting command; you can set this!
  773. EndInterpretCommand: Before running a command
  774. - $cmd: First word in the string, 'foo' in 'foo argument'
  775. - $arg: Argument, if any, like 'argument' in 'foo argument'
  776. - $user: User who issued the command
  777. - $result: Resulting command
  778. StartGroupActionsList: Start the list of actions on a group profile page (after <ul>, before first <li>)
  779. - $action: action being executed (for output and params)
  780. - $group: group for the page
  781. EndGroupActionsList: End the list of actions on a group profile page (before </ul>, after last </li>)
  782. - $action: action being executed (for output and params)
  783. - $group: group for the page
  784. StartGroupProfileElements: Start showing stuff about the group on its profile page
  785. - $action: action being executed (for output and params)
  786. - $group: group for the page
  787. EndGroupProfileElements: Start showing stuff about the group on its profile page
  788. - $action: action being executed (for output and params)
  789. - $group: group for the page
  790. StartShowProfileTagContent: When showing a people tag page
  791. - $action: action being executed (for output and params)
  792. EndShowProfileTagContent: After showing the contents of a people tag page
  793. - $action: action being executed (for output and params)
  794. StartShowTaggedProfilesMiniList: at the start of mini list of tagged profiles
  795. - $action: action being executed (for output and params)
  796. EndShowTaggedProfilesMiniList: at the end of mini list of tagged profiles
  797. - $action: action being executed (for output and params)
  798. StartShowProfileTagSubscribersMiniList: at the start of mini list of people tag subscribers
  799. - $action: action being executed (for output and params)
  800. EndShowProfileTagSubscribersMiniList: at the end of mini list of people tag subscribers
  801. - $action: action being executed (for output and params)
  802. StartTagProfileAction: When starting to show profile tagging page
  803. - $action: action being executed (for output and params)
  804. - $profile: profile being tagged
  805. EndTagProfileAction: After showing profile tagging page
  806. - $action: action being executed (for output and params)
  807. - $profile: profile being tagged
  808. StartProfileCompletionSearch: When starting a profile search for autocompletion
  809. - $action: action being executed (for output and params)
  810. - &$profile: result Profile objects
  811. - $search_engine: the search engine
  812. EndProfileCompletionSearch: After search results for profile autocompletion have been found
  813. - $action: profilec completion action
  814. - &$profile: current result Profile objects
  815. - $search_engine: The search engine object
  816. StartShowTagProfileForm: When showing people tagging form
  817. - $action: action being executed (for output and params)
  818. - $profile: profile being tagged
  819. EndShowTagProfileForm: After showing people tagging form
  820. - $action: action being executed (for output and params)
  821. - $profile: profile being tagged
  822. StartSavePeopletags: When starting to save people tags
  823. - $action: action being executed (for output and params)
  824. - $tagstring: string input, a list of tags
  825. EndSavePeopletags: After saving people tags
  826. - $action: action being executed (for output and params)
  827. - $tagstring: string input, a list of tags
  828. StartProfiletagGetUri: when generating the Uri for a people tag
  829. - $profile_list: the people tag, a Profile_list object
  830. - &$uri: the URI
  831. EndProfiletagGetUri: after generating the uri for a people tag
  832. - $profile_list: the people tag, a Profile_list object
  833. - &$uri: the URI
  834. StartUserPeopletagHomeUrl: when generating the homepage url for a people tag
  835. - $profile_list: the people tag, a Profile_list object
  836. - &$url: the URL
  837. EndUserPeopletagHomeUrl: after generating the homepage url for a people tag
  838. - $profile_list: the people tag, a Profile_list object
  839. - &$url: the URL
  840. StartProfiletagPermalink: when generating the permalink url for a people tag
  841. - $profile_list: the people tag, a Profile_list object
  842. - &$url: the URL
  843. EndProfiletagPermalink: after generating the permalink url for a people tag
  844. - $profile_list: the people tag, a Profile_list object
  845. - &$url: the URL
  846. StartTagProfile: when tagging a profile
  847. - $tagger: profile tagging
  848. - $tagged: profile being tagged
  849. - $tag: the tag
  850. EndTagProfile: after tagging a profile
  851. - $newtag: the newly created Profile_tag object
  852. StartUntagProfile: when deleting a people tag
  853. - $ptag: the Profile_tag object being deleted
  854. EndUntagProfile: after deleting a people tag
  855. - $orig: a copy of the deleted Profile_tag object
  856. StartSubscribePeopletag: when subscribing to a people tag
  857. - $peopletag: Profile_list object being subscribed to
  858. - $profile: subscriber's profile
  859. EndSubscribePeopletag: after subscribing to a people tag
  860. - $profile_list: the people tag, a Profile_list object: Profile_list object being subscribed to
  861. - $profile: subscriber's profile
  862. StartUnsubscribePeopletag: when unsubscribing to a people tag
  863. - $profile_list: the people tag, a Profile_list object: Profile_list object being subscribed to
  864. - $profile: subscriber's profile
  865. EndUnsubscribePeopletag: after unsubscribing to a people tag
  866. - $peopletag: Profile_list object being subscribed to
  867. - $profile: subscriber's profile
  868. StartActivityObjectFromPeopletag: while starting to create an ActivityObject from a people tag
  869. - $profile_list: the people tag, a Profile_list object
  870. - &$object: activity object
  871. EndActivityObjectFromPeopletag: after making an ActivityObject from a people tag
  872. - $profile_list: the people tag, a Profile_list object
  873. - &$object: activity object
  874. StartPeopletagGroupNav: Showing the people tag nav menu
  875. - $menu: the menu widget; use $menu->action for output
  876. EndPeopletagGroupNav: after showing the people tag nav menu
  877. - $menu: the menu widget; use $menu->action for output
  878. StartShowPeopletagItem: when showing a people tag
  879. - $widget: PeopletagListItem widget
  880. EndShowPeopletagItem: after showing a people tag
  881. - $widget: PeopletagListItem widget
  882. StartSubscribePeopletagForm: when showing people tag subscription form
  883. - $action: action being executed (for output and params)
  884. - $peopletag: people tag being subscribed to
  885. EndSubscribePeopletagForm: after showing the people tag subscription form
  886. - $action: action being executed (for output and params)
  887. - $peopletag: people tag being subscribed to
  888. StartShowPeopletags: when showing a textual list of people tags
  889. - $widget: PeopletagsWidget; use $widget->out for output
  890. - $tagger: profile of the tagger
  891. - $tagged: profile tagged
  892. EndShowPeopletags: after showing a textual list of people tags
  893. - $widget: PeopletagsWidget; use $widget->out for output
  894. - $tagger: profile of the tagger
  895. - $tagged: profile tagged
  896. StartProfileListItemTags: when showing people tags in a profile list item widget
  897. - $widget: ProfileListItem widget
  898. EndProfileListItemTags: after showing people tags in a profile list item widget
  899. - $widget: ProfileListItem widget
  900. StartActivityObjectOutputAtom: Called at start of Atom XML output generation for ActivityObject chunks, just inside the <activity:object>. Cancel the event to take over its output completely (you're responsible for calling the matching End event if so)
  901. - $obj: ActivityObject
  902. - $out: XMLOutputter to append custom output
  903. EndActivityObjectOutputAtom: Called at end of Atom XML output generation for ActivityObject chunks, just inside the </activity:object>
  904. - $obj: ActivityObject
  905. - $out: XMLOutputter to append custom output
  906. StartActivityObjectOutputJson: Called at start of JSON output generation for ActivityObject chunks: the array has not yet been filled out. Cancel the event to take over its output completely (you're responsible for calling the matching End event if so)
  907. - $obj ActivityObject
  908. - &$out: array to be serialized; you're free to modify it
  909. EndActivityObjectOutputJson: Called at end of JSON output generation for ActivityObject chunks: the array has not yet been filled out.
  910. - $obj ActivityObject
  911. - &$out: array to be serialized; you're free to modify it
  912. StartNoticeWhoGets: Called at start of inbox delivery prep; plugins can schedule notices to go to particular profiles that would otherwise not have reached them. Canceling will take over the entire addressing operation. Be aware that output can be cached or used several times, so should remain idempotent.
  913. - $notice Notice
  914. - &$ni: in/out array mapping profile IDs to constants: NOTICE_INBOX_SOURCE_SUB etc
  915. EndNoticeWhoGets: Called at end of inbox delivery prep; plugins can filter out profiles from receiving inbox delivery here. Be aware that output can be cached or used several times, so should remain idempotent.
  916. - $notice Notice
  917. - &$ni: in/out array mapping profile IDs to constants: NOTICE_INBOX_SOURCE_SUB etc
  918. StartDefaultLocalNav: When showing the default local nav
  919. - $menu: the menu
  920. - $user: current user
  921. EndDefaultLocalNav: When showing the default local nav
  922. - $menu: the menu
  923. - $user: current user
  924. StartShowAccountProfileBlock: When showing the profile block for an account
  925. - $out: XMLOutputter to append custom output
  926. - $profile: the profile being shown
  927. EndShowAccountProfileBlock: After showing the profile block for an account
  928. - $out: XMLOutputter to append custom output
  929. - $profile: the profile being shown
  930. StartShowGroupProfileBlock: When showing the profile block for a group
  931. - $out: XMLOutputter to append custom output
  932. - $profile: the profile being shown
  933. EndShowGroupProfileBlock: After showing the profile block for a group
  934. - $out: XMLOutputter to append custom output
  935. - $group: the group being shown
  936. StartShowConversation: start the listing of a conversation
  937. - $action: Action object (used mainly as HTMLOutputter)
  938. - $conv: Conversation object, has functions to retrieve relevant notices
  939. - $scoped: Profile for scoping (null if not logged in)
  940. EndShowConversation: after the listing of a conversation
  941. - $action: Action object (used mainly as HTMLOutputter)
  942. - $conv: Conversation object, has functions to retrieve relevant notices
  943. - $scoped: Profile for scoping (null if not logged in)
  944. StartShowThreadedNoticeTail: when showing the replies etc. to a notice
  945. - $nli: parent noticelistitem
  946. - $notice: parent notice
  947. - &$children: list of children
  948. EndShowThreadedNoticeTail: when showing the replies etc. to a notice
  949. - $nli: parent noticelistitem
  950. - $notice: parent notice
  951. - $children: list of children
  952. StartShowThreadedNoticeSub: when showing a reply to a notice
  953. - $nli: parent noticelistitem
  954. - $parent: parent notice
  955. - $child: child notice
  956. EndShowThreadedNoticeSub: when showing a reply to a notice
  957. - $nli: parent noticelistitem
  958. - $parent: parent notice
  959. - $child: child notice
  960. StartAddEmailAddress: when adding an email address through the Web UI
  961. - $user: user getting the new address
  962. - $email: email being added
  963. EndAddEmailAddress: done adding an email address through the Web UI
  964. - $user: user getting the new address
  965. - $email: email being added
  966. StartValidateEmailInvite: when validating an email address for invitations
  967. - $user: user doing the invite
  968. - $email: email address
  969. - &$valid: flag for if it's valid; can be modified
  970. EndValidateEmailInvite: after validating an email address for invitations
  971. - $user: user doing the invite
  972. - $email: email address
  973. - &$valid: flag for if it's valid; can be modified
  974. StartLocalURL: before resolving a local url for an action
  975. - &$action: action to find a path for
  976. - &$paramsi: parameters to pass to the action
  977. - &$fragment: any url fragement
  978. - &$addSession: whether to add session variable
  979. - &$url: resulting URL to local resource
  980. EndLocalURL: before resolving a local url for an action
  981. - &$action: action to find a path for
  982. - &$paramsi: parameters to pass to the action
  983. - &$fragment: any url fragement
  984. - &$addSession: whether to add session variable
  985. - &$url: resulting URL to local resource
  986. StartProfileGetAvatar: When getting an avatar for a profile
  987. - $profile: profile
  988. - $size: size of the avatar
  989. - &$avatar: avatar
  990. EndProfileGetAvatar: After getting an avatar for a profile
  991. - $profile: profile
  992. - $size: size of the avatar
  993. - &$avatar: avatar
  994. StartRegisterSuccess: Before showing the registration success message
  995. - $action: the registration action
  996. StartRegisterSuccess: After showing the registration success message
  997. - $action: the registration action
  998. StartDocFileForTitle: Before searching for a doc or mail template
  999. - $title: Title we're looking for
  1000. - &$paths: Paths we're searching
  1001. - &$filename: Filename so far (set this if you want)
  1002. EndDocFileForTitle: After searching for a doc or mail template
  1003. - $title: Title we looked for
  1004. - $paths: Paths we searched
  1005. - &$filename: Filename so far (set this if you want)
  1006. StartReadWriteTables: when noting which tables must be read-write, even on read-only actions
  1007. - &$tables: list of table names
  1008. - &$rwdb: read-write database URI
  1009. EndReadWriteTables: after noting which tables must be read-write, even on read-only actions
  1010. - $tables: list of table names
  1011. - $rwdb: read-write database URI
  1012. StartShowInviteForm: Right before displaying the invitations form
  1013. - $action: invitation action
  1014. EndShowInviteForm: After displaying the invitations form
  1015. - $action: invitation action
  1016. StartSendInvitations: Right before sending invitations
  1017. - $action: invitation action
  1018. EndSendInvitations: Right after sending invitations
  1019. - $action: invitation action
  1020. StartShowInvitationSuccess: Right before showing invitations success msg
  1021. - $action: invitation action
  1022. EndShowInvitationSuccess: After showing invitations success msg
  1023. - $action: invitation action
  1024. StartUpgrade: when starting a site upgrade
  1025. EndUpgrade: when ending a site upgrade; good place to do your own upgrades
  1026. HaveIMPlugin: is there an IM plugin loaded?
  1027. - &$haveIMPlugin: set me to true if you're loaded!
  1028. StartShowNoticeOptionItems: Before showing first controls in a notice list item; inside the div
  1029. - $nli: NoticeListItem being shown
  1030. EndShowNoticeOptionItems: After showing last controls in a notice list item; inside the div
  1031. - $nli: NoticeListItem being shown
  1032. StartNoticeInScope: Before checking if a notice should be visible to a user
  1033. - $notice: The notice to check
  1034. - $profile: The profile to check for scope
  1035. - &$bResult: The boolean result; fill this in if you want to skip
  1036. EndNoticeInScope: After checking if a notice should be visible to a user
  1037. - $notice: The notice to check
  1038. - $profile: The profile to check for scope
  1039. - &$bResult: The boolean result; overwrite this if you so desire
  1040. StartNoticeListPrefill: Before pre-filling a list of notices with extra data
  1041. - &$notices: Notices to be pre-filled
  1042. - $avatarSize: The avatar size for the list
  1043. EndNoticeListPrefill: After pre-filling a list of notices with extra data
  1044. - &$notices: Notices that were pre-filled
  1045. - &$profiles: Profiles that were pre-filled
  1046. - $avatarSize: The avatar size for the list
  1047. OtherAccountProfiles: Hook to add account profiles to a user account profile block
  1048. - $profile: the Profile being shown
  1049. - &$others: Modifiable array of profile info arrays. Each one has the following fields:
  1050. href: link to the profile
  1051. text: text for the profile
  1052. image: mini image for the profile
  1053. CreateFileImageThumbnailSource: Hook to create image thumbnail source from a File
  1054. - $file: 'File' object to source the image from
  1055. - &$imgPath: Path to image file which can be used as source for our thumbnail algorithm.
  1056. - $media: MIME media type ('image', 'video', 'audio' etc.)
  1057. StartResizeImageFile: Hook to resize an image and output it to a file. No matching End event yet.
  1058. - $imagefile: ImageFile object we're resizing.
  1059. - $outpath: string with output filepath
  1060. - $box: array with size ('width', 'height') and boundary box('x', 'y', 'w', 'h').
  1061. FillImageFileMetadata: Get more metadata about the ImageFile if it is perhaps not a real local file
  1062. - $imagefile ImageFile object which we're getting metadata for (such as animated status, width/height etc.)
  1063. StartShowAttachmentRepresentation: Attachment representation, full file (or in rare cases thumbnails/previews).
  1064. - $out: HTMLOutputter class to use for outputting HTML.
  1065. - $file: 'File' object which we're going to show representation for.
  1066. EndShowAttachmentRepresentation: Executed after Attachment representation, despite perhaps being unsupported media.
  1067. - $out: HTMLOutputter class to use for outputting HTML.
  1068. - $file: 'File' object which we're going to show representation for.
  1069. ShowUnsupportedAttachmentRepresentation: Attachment representation, full file (or in rare cases thumbnails/previews).
  1070. - $out: HTMLOutputter class to use for outputting HTML.
  1071. - $file: 'File' object which we're going to show representation for.
  1072. StartNotifyMentioned: During notice distribution, we send notifications (email, im...) to the profiles who were somehow mentioned.
  1073. - $stored: Notice object that is being distributed.
  1074. - &$mentioned_ids: Array of profile IDs (not just for local users) who got mentioned by the notice.
  1075. EndNotifyMentioned: During notice distribution, we send notifications (email, im...) to the profiles who were somehow mentioned.
  1076. - $stored: Notice object that is being distributed.
  1077. - $mentioned_ids: Array of profile IDs (not just for local users) who got mentioned by the notice.
  1078. StartHomeStubNavItems: Go back Home nav items. Default includes just one item 'home'
  1079. - $out: HTMLOutputter used to output (usually an Action, but not always!)
  1080. - &$items: Referenced array of items in the nav (add if desired)
  1081. EndHomeStubNavItems:
  1082. - $out: HTMLOutputter used to output (usually an Action, but not always!)
  1083. - $items: array of menu items
  1084. StartSubMenu: Before outputting a submenu (including enclosing tags) to HTML
  1085. - $out: HTMLOutputter used to output (usually an Action, but not always!)
  1086. - $menu: The Menu object outputted as a submenu.
  1087. - $label: Localized text which represents the menu item.
  1088. EndSubMenu: After outputting a submenu (including enclosing tags) to HTML
  1089. - $out: HTMLOutputter used to output (usually an Action, but not always!)
  1090. - $menu: The Menu object outputted as a submenu.
  1091. - $label: Localized text which represents the menu item.
  1092. StartDocNav: Before outputting the docs Nav
  1093. - $nav: The DoclNav widget
  1094. EndDocNav: After outputting the docs Nav
  1095. - $nav: The DoclNav widget