public static function MoAuthUtilities::addSupportForm in Google Authenticator / 2 Factor Authentication - 2FA 7
3 calls to MoAuthUtilities::addSupportForm()
- mo_auth_customer_setup in ./
mo_auth_customer_setup.inc - Customer setup form().
- mo_auth_login_settings in ./
mo_auth_login_settings.inc - Showing Support form info.
- mo_auth_user_management in ./
mo_auth_user_management.inc - Showing Support form info.
File
- classes/
Utilities.php, line 54 - This file is part of miniOrange 2FA module.
Class
- MoAuthUtilities
- @file This file is part of miniOrange 2FA module.
Code
public static function addSupportForm(&$form, $form_state) {
drupal_add_js(drupal_get_path('module', 'mo_auth') . '/includes/js/Phone.js', 'file');
drupal_add_css(drupal_get_path('module', 'mo_auth') . '/includes/css/phone.css', array(
'group' => CSS_DEFAULT,
'every_page' => FALSE,
));
$form['markup_idp_attr_header_top_support'] = array(
'#markup' => '<div class="mo2f_table_layout_support_2">',
);
$form['markup_support_1'] = array(
'#markup' => '<div style="font-size:20px;margin-top:10px;margin-bottom:8px;"><b>Support:</b></div></span></h3><div>Need any help? Just send us a query so we can help you.<br /></div>',
);
$form['miniorange_saml_email_address_support'] = array(
'#type' => 'textfield',
'#attributes' => array(
'style' => 'width:100%',
'placeholder' => 'Enter your Email',
),
'#default_value' => variable_get('mo_auth_customer_admin_email', ''),
);
$form['miniorange_saml_phone_number_support'] = array(
'#type' => 'textfield',
'#id' => 'query_phone',
'#attributes' => array(
'class' => array(
'query_phone',
),
'style' => 'width:100%',
),
'#default_value' => variable_get('mo_auth_customer_admin_phone', ''),
);
$form['miniorange_saml_support_query_support'] = array(
'#type' => 'textarea',
'#cols' => '10',
'#rows' => '5',
'#attributes' => array(
'style' => 'width:100%',
'placeholder' => 'Write your query here.',
),
);
$form['miniorange_saml_support_submit_click'] = array(
'#type' => 'submit',
'#value' => t('Submit Query'),
'#submit' => array(
'miniorange_2fa_send_query',
),
'#prefix' => '<p style="text-align: center">',
'#suffix' => '</p>',
'#limit_validation_errors' => array(),
);
$form['miniorange_saml_support_note'] = array(
'#markup' => '<div>If you want custom features in the module, just drop an email to <a href="mailto:drupalsupport@xecurify.com">drupalsupport@xecurify.com</a></div><br><hr><br>',
);
self::faq($form, $form_state);
$form['miniorange_sp_guide_link_end'] = array(
'#markup' => '</div>',
);
}