You are here

public function TfaBasicSmsSetup::begin in TFA Basic plugins 7

TFA process begin.

Overrides TfaBasicSms::begin

File

includes/tfa_sms.inc, line 191

Class

TfaBasicSmsSetup
Class TfaBasicSmsSetup

Code

public function begin() {
  if (empty($this->code)) {
    $this->code = $this
      ->generate();
    if (!$this
      ->sendCode($this->code)) {

      // @todo decide on error text
      $this->errorMessages[''] = t('Unable to deliver code to that number.');
    }
  }
}