You are here

public static function Messaging_Destination::format_address in Messaging 7

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

Format address.

Parameters

$address: Destination address

$type: Optional address type, for static calls

2 calls to Messaging_Destination::format_address()
Messaging_Destination::format in ./messaging.destination.inc
Format destination
Messaging_Send_Method::format_address in ./messaging.method.inc
Format address for display
1 method overrides Messaging_Destination::format_address()
Messaging_User_Destination::format_address in ./messaging.destination.inc
Format address

File

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

Class

Messaging_Destination
Message destination class

Code

public static function format_address($address, $format = MESSAGING_FORMAT_PLAIN, $type = NULL) {
  if ($type) {
    return self::static_invoke($type, 'format_address', $address, $format);
  }
  else {
    return isset($address) ? check_plain($address) : t('none');
  }
}