| @@ 342-345 (lines=4) @@ | ||
| 339 | */ |
|
| 340 | public function submit_idea_before($event) |
|
| 341 | { |
|
| 342 | if (!$this->in_post_idea($event['mode'], $event['data']['forum_id'], empty($event['data']['topic_id']))) |
|
| 343 | { |
|
| 344 | return; |
|
| 345 | } |
|
| 346 | ||
| 347 | $event->update_subarray('data', 'post_time', time()); |
|
| 348 | } |
|
| @@ 357-360 (lines=4) @@ | ||
| 354 | */ |
|
| 355 | public function submit_idea_after($event) |
|
| 356 | { |
|
| 357 | if (!$this->in_post_idea($event['mode'], $event['data']['forum_id'], !empty($event['data']['topic_id']))) |
|
| 358 | { |
|
| 359 | return; |
|
| 360 | } |
|
| 361 | ||
| 362 | $this->ideas->submit($event['data']); |
|
| 363 | ||