You are here

function _sms_user_opted_out in SMS Framework 7

Checks if user opted out of sms messages from the site.

Parameters

object $account: The user account object.

Return value

bool TRUE if the user chose to opt out of messages from the site indefinitely.

1 call to _sms_user_opted_out()
sms_user_sms_send in modules/sms_user/sms_user.module
Implements hook_sms_send().

File

modules/sms_user/sms_user.module, line 229
Provides integration between the SMS Framework and Drupal users.

Code

function _sms_user_opted_out($account) {

  // If the users sms_user_opt_out field is set, return true.
  if (variable_get('sms_user_allow_opt_out', 1) && $account->sms_user['sms_user_opt_out']) {
    return TRUE;
  }
  return FALSE;
}