function _sms_user_feedsprocess_set_value in SMS Framework 7
Sets the values for the three fields supported for feeds.
Callback function for hook_feeds_processor_targets_alter.
Parameters
object $source:
object $target_item:
object $target:
string $value:
array $mapping:
1 string reference to '_sms_user_feedsprocess_set_value'
- sms_user_feeds_processor_targets_alter in modules/
sms_user/ sms_user.module - Implements hook_feeds_processor_targets_alter()
File
- modules/
sms_user/ sms_user.module, line 1205 - Provides integration between the SMS Framework and Drupal users.
Code
function _sms_user_feedsprocess_set_value($source, $target_item, $target, $value, $mapping) {
switch ($target) {
case 'sms_user_phonenumber':
$target_item->sms_user['number'] = $value;
break;
case 'sms_user_status':
$target_item->sms_user['status'] = $value;
break;
case 'sms_user_gateway':
$target_item->sms_user['gateway'] = $value;
break;
}
}