You are here

public static function Messaging_Destination::create_method in Messaging 7

Same name and namespace in other branches
  1. 6.4 includes/messaging_destination.class.inc \Messaging_Destination::create_method()

Create for sending method

3 calls to Messaging_Destination::create_method()
messaging_account_build_destination in ./messaging.module
Build destination object from user account (and create destination if not exists)
Messaging_API_Tests::testMessagingBasicAPI in tests/messaging_api.test
Exercise basic API functions
Messaging_Destination::create in ./messaging.destination.inc
Create from array data

File

./messaging.destination.inc, line 259
Drupal Messaging Framework - Default class file

Class

Messaging_Destination
Message destination class

Code

public static function create_method($send_method, $address, $uid) {
  if ($type = messaging_method_info($send_method, 'address_type')) {
    return self::create_type($type, $address, $uid);
  }
}