BxDrupalAlerts.php 781 B

12345678910111213141516171819202122232425262728293031
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup DrupalConnect Drupal Connect
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxDrupalAlerts extends BxBaseModConnectAlerts
  12. {
  13. function __construct()
  14. {
  15. parent::__construct();
  16. $this->oModule = BxDolModule::getInstance('bx_drupal');
  17. }
  18. public function response($o)
  19. {
  20. parent::response($o);
  21. if ('profile' == $o->sUnit && 'show_login_form' == $o->sAction) {
  22. $o->aExtras['sParams'] .= ' no_auth_buttons no_join_text';
  23. $o->aExtras['oForm'] = BxDolForm::getObjectInstance('bx_drupal_login', 'bx_drupal_login');
  24. }
  25. }
  26. }
  27. /** @} */