Hi. Is there a plan and timescale for to this be ported to D7?

CommentFileSizeAuthor
#5 rules_send_sms.zip7.07 KBrbosscher

Comments

tebb’s picture

Title: Same functionality in Drupal 7 (Upgrade) » rules_send_sms: Drupal 7 Upgrade
achton’s picture

Subscribing.

jayhariani’s picture

sub.

simon georges’s picture

rbosscher’s picture

StatusFileSize
new7.07 KB

Just my attempt to convert this module to drupal 7.
I have it working, except the send to user rule, i wasn't able to test it yet.

W.M.’s picture

Issue summary: View changes

@rbosscher

Could you please give more details as how to send a SMS to multiple recipients using Views, VBO, Rules, SMS Framework, and a set of mobile numbers stored inside a node "phone number" field? All from the Views interface?

Thanks.

rbosscher’s picture

I haven't used this module for a while now.
But as I look in the code. I think you can do the following:

Create a new component with as type: rule
Give it a nice name such as 'send SMS' or something

set as paramenter type to node and give it a label and system name. eg: node
create new action and select add data type
Set value to List of text

Use the tokens to set the initial value of the list
eg: [node:sms-field] (or any field containing the sms number)
set the added variable label to SMS numbers
and the variable name to sms_numbers
click save

next create new action send Send SMS
Use the variable sms_numbers as List of numbers to send to.
You can fill in a standard text to send,
(you could also use a parameter (like the node, but then as text) and use that as text to send after views bulk operations execution)

Click save

Now you can add this created component as action in your views bulk operations.
so go to your view click the bulk operations field (if the base table is node) the component send SMS should be apearing as action.
Click save and you're able to do a bulk send by VBO

Hope this helps.

socialnicheguru’s picture

it would be great if it came with a default rule

rbosscher’s picture

As I was investigating this issue a bit more.
The 7.x-1.x-dev module has this rule action all ready built in for Drupal 7.

So my converted module is not necessary anymore.
I would suggest to use the smsframework 7.x-1.x-dev module for SMS rules instead the one in the zip file.

W.M.’s picture

Thanks very much rbosscher.

nithinkolekar’s picture

@rbosscher
are you sure there is a built in action to send sms? I couldn't find it ..

Update : Ok "send sms" action is available in rules but not it is not appearing in VBO.

rbosscher’s picture

You can create a new rule component in rules. Add a parameter of the object you try to do a bulk operation on (ex node, or user) Then you can send a sms by vbo

Export of my rule

{ "rules_send_sms_by_vbo" : {
    "LABEL" : "Send SMS by VBO",
    "PLUGIN" : "rule",
    "OWNER" : "rules",
    "REQUIRES" : [ "rules", "sms" ],
    "USES VARIABLES" : { "node" : { "label" : "node", "type" : "node" } },
    "DO" : [
      { "sms_send" : { "to" : "[node:field-mobile]", "message" : "Sending Text" } }
    ]
  }
}