function engagements_get_sms_from_history
Search API
7.x engagements.module | engagements_get_sms_from_history($message_sid) |
6.x engagements.module | engagements_get_sms_from_history($message_sid) |
3 calls to engagements_get_sms_from_history()
- engagements_display_advisee_engagements_page in modules/
engagements/ engagements.module - engagements_display_main in modules/
engagements/ engagements.module - displays the main Engagements tab, which shows the history of past engagements.
- 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.
File
- modules/
engagements/ engagements.module, line 1113 - This is the primary module file for the engagements module.
Code
function engagements_get_sms_from_history($message_sid)
{
$res = db_query("SELECT * FROM sms_history WHERE message_sid = ? ORDER BY mid DESC LIMIT 1", array($message_sid));
$cur = db_fetch_array($res);
if ($cur) {
return $cur;
}
return FALSE;
}