Function Hook_notification_ticket_new_staff->member_has_enabled

Definitions

sources/hooks/systems/notifications/ticket_new_staff.php

  • Find whether a member has enabled this notification (i.e. have permission to AND have chosen to or are defaulted to).(Separate implementation to list_members_who_have_enabled, for performance reasons).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: bool

Parameters

Name Type Default Set Range Description
$notification_code ID_TEXT required parameter N/A N/A Notification code
$member_id MEMBER required parameter N/A N/A Member to check against
$category ?SHORT_TEXT Null N/A N/A The category within the notification code (null: none)

Return

  • Whether they have
  • Type: boolean
  • Set: N/A
  • Range: N/A