Function Hook_cns_warnings_ban_ip->get_form_fields

Definitions

sources/hooks/systems/cns_warnings/ban_ip.php

  • Render form fields for the warnings screen.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$add_text Tempcode required parameter N/A N/A Tempcode to be included on the intro paragraph of the warnings screen (passed by reference)
$fields Tempcode required parameter N/A N/A The fields to be rendered (passed by reference)
$hidden Tempcode required parameter N/A N/A The hidden fields to be included (passed by reference)
$new boolean required parameter N/A N/A Whether it is a new warning/punishment record
$explanation LONG_TEXT required parameter N/A N/A The explanation for the warning/punishment record
$is_warning BINARY required parameter N/A N/A Whether to make this a formal warning
$member_id MEMBER required parameter N/A N/A The member the warning is for
$spam_mode BINARY required parameter N/A N/A Whether this is a spam warning
$post_id ?AUTO_LINK required parameter N/A N/A The ID of the forum post of which we clicked warn (null: we are not warning on a forum post)
$ip_address ?SHORT_TEXT required parameter N/A N/A The IP address of the poster (null: we are not warning on a forum post)