Exemple #1
0
 /**
  * Return list of the "Button" widgets
  *
  * @return array
  */
 protected function getFormButtons()
 {
     $result = parent::getFormButtons();
     $params = array('text_before' => static::t('Or register with'), 'buttonStyle' => 'icon');
     $result['social-login'] = $this->getWidget($params, 'XLite\\Module\\CDev\\Paypal\\View\\Login\\Widget');
     return $result;
 }
 /**
  * Return list of the "Button" widgets
  *
  * @return array
  */
 protected function getFormButtons()
 {
     $result = parent::getFormButtons();
     if ($this->isLogged()) {
         unset($result['delete_profile']);
     }
     return $result;
 }