You are here

function push_notifications_send_message_account in Push Notifications 7

Send a simple message alert to a single account.

Parameters

object $account User account.:

string $message Message to be included in payload.:

Return value

mixed

File

./push_notifications.module, line 520
Push Notifications functionality.

Code

function push_notifications_send_message_account($account, $message) {
  if (!is_object($account) || !is_numeric($account->uid)) {
    watchdog('push_notifications', t('Not a valid account object.'));
    return false;
  }
  push_notifications_send_message(array(
    $account->uid,
  ), $message);
}