Example #1
0
 /**
  * Output all the notification methods to the template
  *
  * @param \phpbb\notification\manager $phpbb_notifications
  * @param \phpbb\template\template $template
  * @param \phpbb\user $user
  * @param string $block
  */
 public function output_notification_methods(\phpbb\notification\manager $phpbb_notifications, \phpbb\template\template $template, \phpbb\user $user, $block = 'notification_methods')
 {
     $notification_methods = $phpbb_notifications->get_subscription_methods();
     foreach ($notification_methods as $method => $method_data) {
         $template->assign_block_vars($block, array('METHOD' => $method_data['id'], 'NAME' => $user->lang($method_data['lang'])));
     }
 }