Function Hook_profiles_tabs_edit->render_tab

Definitions

sources/hooks/systems/profiles_tabs/edit.php

  • Render function for profile tab hooks.
  • 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
$member_id_viewing MEMBER No No required parameter N/A N/A The ID of the member who is doing the viewing
$leave_to_ajax_if_possible boolean No No False N/A N/A Whether to leave the tab contents null, if this hook supports it, so that AJAX can load it later

Returns

  • A tuple: The tab title, the tab contents, the suggested tab order, the icon
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Render function for profile tab hooks.
 *
 * @param  MEMBER $member_id_of The ID of the member who is being viewed
 * @param  MEMBER $member_id_viewing The ID of the member who is doing the viewing
 * @param  boolean $leave_to_ajax_if_possible Whether to leave the tab contents null, if this hook supports it, so that AJAX can load it later
 * @return array A tuple: The tab title, the tab contents, the suggested tab order, the icon
 */

public function render_tab(int $member_id_of, int $member_id_viewing, bool $leave_to_ajax_if_possible = false) : array