| @@ 330-333 (lines=4) @@ | ||
| 327 | */ |
|
| 328 | public function submit_idea_before($event) |
|
| 329 | { |
|
| 330 | if (!$this->in_post_idea($event['mode'], $event['data']['forum_id'], empty($event['data']['topic_id']))) |
|
| 331 | { |
|
| 332 | return; |
|
| 333 | } |
|
| 334 | ||
| 335 | $event->update_subarray('data', 'post_time', time()); |
|
| 336 | } |
|
| @@ 345-348 (lines=4) @@ | ||
| 342 | */ |
|
| 343 | public function submit_idea_after($event) |
|
| 344 | { |
|
| 345 | if (!$this->in_post_idea($event['mode'], $event['data']['forum_id'], !empty($event['data']['topic_id']))) |
|
| 346 | { |
|
| 347 | return; |
|
| 348 | } |
|
| 349 | ||
| 350 | $this->ideas->submit($event['data']); |
|
| 351 | ||