function sms_user_rules_action_info in SMS Framework 6.2
Same name and namespace in other branches
- 7 modules/sms_user/sms_user.rules.inc \sms_user_rules_action_info()
Implements hook_rules_action_info().
File
- modules/
sms_user/ sms_user.rules.inc, line 35 - SMS User Rules Implementation.
Code
function sms_user_rules_action_info() {
return array(
'sms_action_user_send' => array(
'label' => t('Send SMS message to user'),
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('User'),
),
'message' => array(
'type' => 'string',
'label' => t('Message'),
),
),
'module' => 'SMS Framework',
),
'sms_action_match_user' => array(
'label' => t('Match mobile number to user'),
'arguments' => array(
'number' => array(
'type' => 'string',
'label' => t('Mobile number'),
),
),
'new variables' => array(
'user_loaded' => array(
'type' => 'user',
'label' => t('Loaded user'),
),
),
'module' => 'SMS Framework',
),
);
}