You are here

function messaging_user_uid in Messaging 7

Same name and namespace in other branches
  1. 6.4 messaging.module \messaging_user_uid()

Helper function, get uid from account parameter (object or uid)

1 call to messaging_user_uid()
Messaging_Destination::validate_type in ./messaging.destination.inc
Validate values to create a destination

File

./messaging.module, line 689

Code

function messaging_user_uid($account) {
  return is_object($account) ? $account->uid : (int) $account;
}