function db_get_cwid_from_user_id

6.x db_get_cwid_from_user_id($user_id)
3 calls to db_get_cwid_from_user_id()
engagements_handle_incoming_sms in modules/engagements/engagements.module
This catches incoming sms messages from POST, but can also be used by our "sms_get_all_messages" function, but it is also used by the sms_get_all_messages to save/update information.
engagements_mass_sms_perform_batch_operation in modules/engagements/engagements.module
engagements_sms_get_all_messages in modules/engagements/engagements.module
Retrieve all messages, update the ones which don't have prices associated with them yet.


includes/, line 532
This file contains mostly db shortcuts.


function db_get_cwid_from_user_id($user_id) {
  return db_result(db_query("SELECT cwid FROM users WHERE user_id = ?", array($user_id)));