Function Module_chat->handle_repost

Definitions

site/pages/modules/chat.php

  • Certain add/remove actions may be triggered by hyperlinks, but they need confirming because a link click should never constitute a state change.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$action ID_TEXT No No required parameter N/A N/A The language string codename of our action
$param string No No required parameter N/A N/A Parameter of action

Returns

  • If a confirm page is being output, this is it (null: continue as before)
  • Type: ?Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Certain add/remove actions may be triggered by hyperlinks, but they need confirming because a link click should never constitute a state change.
 *
 * @param  ID_TEXT $action The language string codename of our action
 * @param  string $param Parameter of action
 * @return ?Tempcode If a confirm page is being output, this is it (null: continue as before)
 */

public function handle_repost(string $action, string $param) : ?object