Skip to content

Commit

Permalink
Updated SMS tax naming to SMS fee
Browse files Browse the repository at this point in the history
  • Loading branch information
cableman committed May 22, 2014
1 parent 490373b commit 5d34657
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions alma.module
Original file line number Diff line number Diff line change
Expand Up @@ -707,13 +707,13 @@ function alma_profile2_load($entities) {
/**
* Implements hook_field_attach_view_alter().
*
* Alter user profile view with SMS TAX.
* Alter user profile view with SMS fee.
*/
function alma_field_attach_view_alter(&$output, $context) {
if (isset($output['field_alma_sms'][0]['#markup'])) {
$ding_user_tax_sms = variable_get('ding_user_tax_sms', t('Notice that there is a fee for receiving a SMS'));
if ($ding_user_tax_sms) {
$output['field_alma_sms'][0]['#markup'] .= '<span class="notice-sms">(' . $ding_user_tax_sms . ')</span>';
$ding_user_fee_sms = variable_get('ding_user_fee_sms', t('Notice that there is a fee for receiving a SMS'));
if ($ding_user_fee_sms) {
$output['field_alma_sms'][0]['#markup'] .= '<span class="notice-sms">(' . $ding_user_fee_sms . ')</span>';
}
}
}
Expand Down

0 comments on commit 5d34657

Please sign in to comment.