Function Hook_Notification->is_first_admin

Definitions

sources/notifications.php

  • Find if a given member is the first administrator. Useful for not having ALL staff get all useful staff notifications by default.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$member_id MEMBER No No required parameter N/A N/A The member the notification would be for

Returns

  • Whether they are the first admin
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find if a given member is the first administrator. Useful for not having ALL staff get all useful staff notifications by default.
 *
 * @param  MEMBER $member_id The member the notification would be for
 * @return boolean Whether they are the first admin
 */

protected function is_first_admin(int $member_id) : bool