Rename Joomla events from onMokoJoomCross* to onMokoSuiteCross* #138

Open
opened 2026-06-21 15:54:36 +00:00 by jmiller · 0 comments
Owner

Summary

The codebase dispatches and subscribes to Joomla events using the old naming convention. These event names are part of the public API that third-party plugins can hook into, so they need to be updated to match the new product name.

Events to rename

Old Name New Name
onMokoJoomCrossBeforePost onMokoSuiteCrossBeforePost
onMokoJoomCrossAfterPost onMokoSuiteCrossAfterPost
onMokoJoomCrossPostFailed onMokoSuiteCrossPostFailed
onMokoJoomCrossGetServices onMokoSuiteCrossGetServices
onMokoJoomCrossSendPost onMokoSuiteCrossSendPost
onMokoJoomCrossDeletePost onMokoSuiteCrossDeletePost
onMokoJoomCrossValidateCredentials onMokoSuiteCrossValidateCredentials
onMokoJoomCrossGetStats onMokoSuiteCrossGetStats

Files to update

  • All service plugin getSubscribedEvents() methods
  • CrossPostDispatcher.php — event dispatch calls
  • QueueProcessor.php — event dispatch calls
  • plg_system_mokosuitecross — event dispatch
  • plg_system_mokosuitecross_events — event dispatch
  • plg_system_mokosuitecross_gallery — event dispatch
  • Wiki developer guide

Acceptance Criteria

  • All event names use MokoSuiteCross prefix
  • grep -ri "MokoJoomCross" source/ returns zero results (after combined with #128)
  • Service plugins subscribe to new event names
  • Developer guide updated with new event names
## Summary The codebase dispatches and subscribes to Joomla events using the old naming convention. These event names are part of the public API that third-party plugins can hook into, so they need to be updated to match the new product name. ## Events to rename | Old Name | New Name | |----------|----------| | `onMokoJoomCrossBeforePost` | `onMokoSuiteCrossBeforePost` | | `onMokoJoomCrossAfterPost` | `onMokoSuiteCrossAfterPost` | | `onMokoJoomCrossPostFailed` | `onMokoSuiteCrossPostFailed` | | `onMokoJoomCrossGetServices` | `onMokoSuiteCrossGetServices` | | `onMokoJoomCrossSendPost` | `onMokoSuiteCrossSendPost` | | `onMokoJoomCrossDeletePost` | `onMokoSuiteCrossDeletePost` | | `onMokoJoomCrossValidateCredentials` | `onMokoSuiteCrossValidateCredentials` | | `onMokoJoomCrossGetStats` | `onMokoSuiteCrossGetStats` | ## Files to update - All service plugin `getSubscribedEvents()` methods - `CrossPostDispatcher.php` — event dispatch calls - `QueueProcessor.php` — event dispatch calls - `plg_system_mokosuitecross` — event dispatch - `plg_system_mokosuitecross_events` — event dispatch - `plg_system_mokosuitecross_gallery` — event dispatch - Wiki developer guide ## Acceptance Criteria - [ ] All event names use `MokoSuiteCross` prefix - [ ] `grep -ri "MokoJoomCross" source/` returns zero results (after combined with #128) - [ ] Service plugins subscribe to new event names - [ ] Developer guide updated with new event names
Sign in to join this conversation.
No labels
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteCross#138