You are here

function messaging_messaging in Messaging 6.4

Same name and namespace in other branches
  1. 7 messaging.module \messaging_messaging()

Implementation of hook_messaging()

File

./messaging.module, line 524

Code

function messaging_messaging($op, $type = NULL) {
  switch ($op) {
    case 'text filters':
      messaging_include('text.inc');
      return _messaging_text_filter_info();
    case 'address types':

      // Get some built in address types
      $types['user'] = array(
        'name' => t('User name'),
        // Name of the address for this method
        'format callback' => 'messaging_user_format_name',
        // Format address for display
        'account_property' => 'uid',
        // Property on user account
        'field_name' => 'uid',
        // Field on which this address is stored
        'field_table' => 'users',
      );
      return $types;
  }
}