You are here

public static function Messaging_Destination::build_type in Messaging 7

Build from address type

3 calls to Messaging_Destination::build_type()
Messaging_Destination::build in ./messaging.destination.inc
Build destination object
Messaging_Destination::build_object in ./messaging.destination.inc
Build destination from db object
Messaging_Destination::build_user in ./messaging.destination.inc
Build from user account

File

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

Class

Messaging_Destination
Message destination class

Code

public static function build_type($type, $template = NULL) {
  $class = messaging_address_info($type, 'class', 'Messaging_Destination');
  $destination = new $class($template);
  $destination->type = $type;
  return $destination;
}