|
@@ 324-327 (lines=4) @@
|
| 321 |
|
*/ |
| 322 |
|
public function submit_idea_before($event) |
| 323 |
|
{ |
| 324 |
|
if (!$this->is_post_idea($event['mode'], $event['data']['forum_id'], empty($event['data']['topic_id']))) |
| 325 |
|
{ |
| 326 |
|
return; |
| 327 |
|
} |
| 328 |
|
|
| 329 |
|
// We need $post_time after submit_post(), but it's not available in the post $data, unless we set it now |
| 330 |
|
$event->update_subarray('data', 'post_time', time()); |
|
@@ 340-343 (lines=4) @@
|
| 337 |
|
*/ |
| 338 |
|
public function submit_idea_after($event) |
| 339 |
|
{ |
| 340 |
|
if (!$this->is_post_idea($event['mode'], $event['data']['forum_id'], !empty($event['data']['topic_id']))) |
| 341 |
|
{ |
| 342 |
|
return; |
| 343 |
|
} |
| 344 |
|
|
| 345 |
|
$this->ideas->submit($event['data']); |
| 346 |
|
|