Function Hook_ecommerce_gambling->get_message

Definitions

sources/hooks/systems/ecommerce/gambling.php

  • Get the message for use in the purchasing module.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$type_code ID_TEXT No No required parameter N/A N/A The product in question

Returns

  • The message (null: no message)
  • Type: ?Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the message for use in the purchasing module.
 *
 * @param  ID_TEXT $type_code The product in question
 * @return ?Tempcode The message (null: no message)
 */

public function get_message(string $type_code) : ?object