Database storage for each sms (for 2.x)

derhasi - May 6, 2009 - 10:40
Project:SMS Framework
Version:6.x-2.x-dev
Component:Core Framework
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

In most cases sms messages should be handled in Drupal to execute or extract any information, it's important to save the messages in a general way. For being able to direct to a special message by simply calling an message-ID, there has to be central database storage.

So I started to write a new submodule for that issue, depending on #442748: New hook system with hook_sms() for 2.x.

Database-table:
- mid
- direction
- type
- text
- sender
- recipient
- sms (whole serialized $sms-object)

In .install there weight will be set to -2, to assure modules can call $sms->mid when calling hook_sms(post send) or hook_sms(post receive). So additional storage may be possible, like saving a $sms <-> $user relation.

You're welcome to add comments.

AttachmentSize
sms_dbstorage.info189 bytes
sms_dbstorage.install.txt2.27 KB
sms_dbstorage.module.txt2.83 KB

#1

Eric_A - September 17, 2009 - 10:14

A quick comment from a 1.0 user, without having done much analysis.

Please consider coordinating this with the Messaging Framework, which already stores messages if my memory serves me right. Some people already use the messaging_sms module that comes with Messaging.

#2

Eric_A - September 19, 2009 - 16:27

messaging_store, a Messaging table:
- mqid
- uid
- sender
- method
- destination
- subject
- body
- params
- created
- sent
- cron
- queue
- log

 
 

Drupal is a registered trademark of Dries Buytaert.