jreviews:listing.update_complete_view
Allows addons to return custom HTML or a callable for the listing update completion view. If a value is returned, it replaces the default success message. Useful for addons that need custom post-update workflows or messaging.
You need to have a working knowledge of Hooks before you get started.
Fires after listing is successfully updated, before completion view is rendered
Parameters
| Name | Type | Description |
|---|---|---|
$param1 |
|
|
$this->listing |
|
|
$this->response |
|
|
$customCompletionView |
null |
Default value is null (shows default completion view) |
$listing |
\JReviews\App\Models\Listing |
The updated listing |
$response |
\FWD\Clickfwd\Yoyo\YoyoResponse |
The Yoyo response object for manipulating the response |
Boilerplate Code
Use the boilerplate code to start using the filter, and add your own logic to modify the first argument and return it.
fwd_add_filter('jreviews:listing.update_complete_view', function($param1, $this->listing, $this->response, $customCompletionView, $listing, $response)
{
// Your code here
return $param1;
});
Source Files
app/Http/Site/Yoyo/Listing/EditForm.php