Function Hook_points_poll__add->points_profile

Definitions

sources/hooks/systems/points/poll__add.php

  • Determine the aggregate row language for POINTS_PROFILE.tpl.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$member_id_of ?MEMBER No No required parameter N/A N/A The ID of the member who is being viewed (null: was run from the admin ledger)
$member_id_viewing ?MEMBER No No required parameter N/A N/A The ID of the member who is doing the viewing (null: current member)

Returns

  • List containing label for use with aggregate point tables (null: hook disabled)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Determine the aggregate row language for POINTS_PROFILE.tpl.
 *
 * @param  ?MEMBER $member_id_of The ID of the member who is being viewed (null: was run from the admin ledger)
 * @param  ?MEMBER $member_id_viewing The ID of the member who is doing the viewing (null: current member)
 * @return ?array List containing label for use with aggregate point tables (null: hook disabled)
 */

public function points_profile(?int $member_id_of, ?int $member_id_viewing) : ?array