Have sent a message and not a link

mbennett3 - August 18, 2008 - 16:16
Project:SMS Framework
Version:6.x-1.x-dev
Component:Send to Phone
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have been playing around with this module and have got it to send sms messages, but when it send it it send it as a link. users would have to log in to see the message. I just want to sent the title and the body in the message

#1

Will White - November 17, 2008 - 23:49
Version:5.x-1.0-beta1» 6.x-1.x-dev
Component:sms_sendtophone.module» Send to Phone
Category:support request» feature request

Moving to Drupal 6 development branch.

#2

upupax - April 9, 2009 - 21:43

Sorry, what about this functionality? Has it been developed yet?
Isn't it enough to change the '#default_value' from link to check_plain($node->body)?
TIA this module is great!!

#3

OnlineWD™ - August 13, 2009 - 09:55

I find this strange, installed the module and enabled Send to phone for content type. Link appears in block but message is link to node. What use is a link if the phone cannot view web pages? AFAIK most mobile phones cannot view web pages and regardless, most sites aren't mobile phone friendly. I would like to customize the default message using tokens. Also I think the URL ought to adopt URL alias i.e. sms/sendtophone/url-alias.

#4

OnlineWD™ - August 17, 2009 - 03:07

I'm trying to create module, have made it load body ..

<?php
function custom_sms_form_sms_sendtophone_form_alter(&$form, $form_state) {
module_load_include('module', 'sms_sendtophone');
module_load_include('inc', 'date_token');
      if (
is_numeric(arg(3))) {
       
$node = node_load(arg(3));
       
$form['message'] = array(
         
'#type' => 'textarea',
         
'#title' => t('Message preview'),
         
'#description' => t('This message will be sent to the phone.'),
         
'#cols' => 35,
         
'#rows' => 2,
         
'#attributes' => array('disabled' => true),
         
'#default_value' => $node->body,
        );
      }
}
?>

I want it to include date fields too and all repeat dates too. I tried $node->field_myfieldname['value'], does nothing.

 
 

Drupal is a registered trademark of Dries Buytaert.