Function Hook_cns_warnings_ban_ip->generate_text

Definitions

sources/hooks/systems/cns_warnings/ban_ip.php

  • Generate punitive action text from a punitive action database row.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$row array No No required parameter N/A N/A The database row

Returns

  • The punitive action text
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Generate punitive action text from a punitive action database row.
 *
 * @param  array $row The database row
 * @return string The punitive action text
 */

public function generate_text(array $row) : string