Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The attached patch brings the core SMS Framework D7 Rules integration up-to-date for Rules 2.x, including missing hook_rules_data_info() implementation and missing token labels/descriptions.
I also added a simple Rule Action for sending an SMS to a number. This is different than the "send to user" action in the sms_user module, since it sends to a number in any arbitrary entity field as long as it's accessible as a token in Rules. If you combine this with VBO, you can send to any list of SMS numbers you can create with a view (user fields, node fields, etc).
Comment | File | Size | Author |
---|---|---|---|
#4 | sms_rules.patch | 2.45 KB | fago |
smsframework-D7-RulesImprovements.patch | 3.12 KB | nmcclain | |
Comments
Comment #1
BenK CreditAttribution: BenK commentedInteresting idea... I'll take a look and test.
Comment #2
fnapo CreditAttribution: fnapo commentedCould you please send more detailed informations on how to send multiple SMSs with VBO on D7? Thanks
Comment #3
rbosscher CreditAttribution: rbosscher commentedI've made an attempt to updated the rules_send_sms module
1054940#5
Comment #4
fagoI've had a look at the patch and
* fixed the access callback
* function prefixes to be all in the sms-namespace
* removed the extra logging as sms_send() already handles it
Comment #5
rbosscher CreditAttribution: rbosscher commentedNice ;)
Tested it, seems all ok to me.
Comment #6
fagoany updates on this one?
Comment #7
rbosscher CreditAttribution: rbosscher commentedI used your patch now for the last few weeks, sending out almost 2000 sms using it. I think we can implement this :)
Comment #8
mcpuddin CreditAttribution: mcpuddin commentedWorked well guys! committed.
Comment #10
Richard_1618 CreditAttribution: Richard_1618 commentedAny chance for any assistance applying this patch please. I've been trying to run it via the patch manager module and it keeps showing an error message "Unable to find the specified module ... trying anyway."
smsframework?
Comment #11
Richard_1618 CreditAttribution: Richard_1618 commentedComment #12
rbosscher CreditAttribution: rbosscher commentedWhy do you try to patch it? It is has already been committed to the latest dev version.
So reopening this issue for not being able to patch seems a bit unnecessary to me.
if the patch manager module say's it cant find the specified module usually you don't enter the correct short name in the module field of the patch manager node.
Comment #14
nithinkolekar CreditAttribution: nithinkolekar commentedI still couldn't find "simple Rule Action for sending an SMS to a number which works with any arbitrary entity field" just like mentioned by OP.
could you please share any other modules/steps required to see this action in VBO?
currently these actions are available in VBO
Change the author of content
Delete item
Delete revision
Execute arbitrary PHP script
Make content sticky
Make content unsticky
Modify entity values
Pass ids as arguments to a page
Promote content to front page
Publish content
Remove content from front page
Save content
Send e-mail
Unpublish content
Unpublish content containing keyword(s)
Update automatic entity labels
Update node alias
Comment #15
almaudoh CreditAttribution: almaudoh commentedThis issue was fixed years ago. Please open a new support ticket if
this feature is still needed.a specific use-case is not satisfied.