| 1 | <?php |
||
| 23 | class Verification_Display_Module extends ElkArte\sources\modules\Abstract_Module |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * {@inheritdoc } |
||
| 27 | */ |
||
| 28 | public static function hooks(\Event_Manager $eventsManager) |
||
| 29 | { |
||
| 30 | global $user_info, $modSettings; |
||
| 31 | |||
| 32 | if (!$user_info['is_admin'] && !$user_info['is_moderator'] && !empty($modSettings['posts_require_captcha']) && ($user_info['posts'] < $modSettings['posts_require_captcha'] || ($user_info['is_guest'] && $modSettings['posts_require_captcha'] == -1))) |
||
| 33 | { |
||
| 34 | return array( |
||
| 35 | array('topicinfo', array('Verification_Display_Module', 'topicinfo'), array()), |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | else |
||
| 39 | return array(); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Prepare $context for the quick reply. |
||
| 44 | */ |
||
| 45 | public function topicinfo() |
||
| 56 | } |
||
| 57 | } |