You are here

function notifications_destination_validate in Notifications 6.4

Validate destination for method

1 call to notifications_destination_validate()
notifications_destination_parse_submitted in includes/destination.inc
Parse submitted destination

File

includes/destination.inc, line 29
Destination management

Code

function notifications_destination_validate($method, $address, $account) {

  // Check the method is valid for this account
  $valid_methods = notifications_send_methods($account);
  return isset($valid_methods[$method]) && Messaging_Destination::validate_method($method, $address, $account);
}