public static function Utilities::Two_FA_Advertisement in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7
2 calls to Utilities::Two_FA_Advertisement()
- miniorange_saml_customer_setup in ./
miniorange_saml_customer_setup.inc - miniorange_saml_export_config in ./
miniorange_saml_export_config.inc - Showing Support form info.
File
- includes/
Utilities.php, line 224
Class
- Utilities
- This file is part of miniOrange SAML plugin.
Code
public static function Two_FA_Advertisement(&$form, $form_state) {
global $base_url;
$form['markup_idp_attr_hea555der_top_support'] = array(
'#markup' => '<div class="mo_saml_table_layout mo_saml_container_2">',
);
$form['miniorangerr_otp_email_address'] = array(
'#markup' => '<div><h3 class="mo_otp_h_3" >Checkout our Drupal <br>Two-Factor Authentication(2FA) module<br></h3></div>
<div class="mo_otp_adv_tfa"><img src="' . $base_url . '/' . drupal_get_path("module", "miniorange_saml") . '/includes/images/miniorange_i.png" alt="miniOrange icon" height="60px" width="60px" class="mo_otp_img_adv"><h3 class="mo_otp_txt_h3">Two-Factor Authentication (2FA)</h3></div>',
);
$form['minioranqege_otp_phone_number'] = array(
'#markup' => '<div class="mo_otp_paragraph"><p>Two Factor Authentication (TFA) for your Drupal site is highly secure and easy to setup. Adds a second layer of security to your Drupal accounts. It protects your site from hacks and unauthorized login attempts.</p></div>',
);
$form['miniorange_otp_2fa_button'] = array(
'#markup' => '<div style="margin-left: 7%;"><a href="https://www.drupal.org/project/miniorange_2fa" target="_blank"
class="mo_saml_btn mo_saml_btn-primary" style="padding: 4px 10px;">Download Plugin</a>
<a href="https://plugins.miniorange.com/drupal-two-factor-authentication-2fa" class="mo_saml_btn mo_saml_btn-success"
style="padding: 4px 10px;" target="_blank">Know More</a></div></div></div>',
);
}