public static function Utilities::AddSupportButton in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7
7 calls to Utilities::AddSupportButton()
- miniorange_saml_customer_setup in ./
miniorange_saml_customer_setup.inc - miniorange_saml_custom_certficate in ./
miniorange_saml_custom_certficate.inc - miniorange_saml_export_config in ./
miniorange_saml_export_config.inc - Showing Support form info.
- miniorange_saml_idp_setup in ./
miniorange_saml_idp_setup.inc - miniorange_saml_login_options in ./
miniorange_saml_login_options.inc
File
- includes/
Utilities.php, line 69
Class
- Utilities
- This file is part of miniOrange SAML plugin.
Code
public static function AddSupportButton(&$form, &$form_state) {
$form['miniorange_saml_idp_support_side_button'] = array(
'#type' => 'button',
'#value' => t('Support'),
'#attributes' => array(
'style' => 'font-size: 15px;cursor: pointer;text-align: center;width: 150px;height: 35px;
background: rgba(43, 141, 65, 0.93);color: #ffffff;border-radius: 3px;transform: rotate(90deg);text-shadow: none;
position: relative;margin-left: -92px;top: 107px;',
),
'#prefix' => '<div id="mosaml-feedback-form" class="mo_saml_table_layout_support_btn">',
);
$form['markup_idp_attr_header_top_support'] = array(
'#markup' => '<div id="Support_Section" class="mo_saml_table_layout_support_1">',
);
$form['markup_support_1'] = array(
'#markup' => '<h3><b>Feature Request/Contact Us:</b></h3>
<div>Need any help? We can help you with configuring your Service Provider.
Just send us a query and we will get back to you soon.<br /></div>',
);
$form['miniorange_saml_email_address'] = array(
'#type' => 'textfield',
'#attributes' => array(
'style' => 'width:100%',
'placeholder' => 'Enter your Email',
),
'#default_value' => variable_get('miniorange_saml_customer_admin_email', ''),
);
$form['miniorange_saml_phone_number'] = array(
'#type' => 'textfield',
'#attributes' => array(
'style' => 'width:100%',
'pattern' => '[\\+][0-9]{1,4}\\s?[0-9]{7,12}',
'placeholder' => 'Enter your phone number with country code (+1)',
),
'#default_value' => variable_get('miniorange_saml_customer_admin_phone', ''),
);
$form['miniorange_saml_support_query'] = 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(
'Utilities::send_support_query',
),
'#attributes' => array(
'style' => 'background: #337ab7;color: #ffffff;text-shadow: 0 -1px 1px #337ab7, 1px 0 1px #337ab7, 0 1px 1px #337ab7, -1px 0 1px #337ab7;box-shadow: 0 1px 0 #337ab7;border-color: #337ab7 #337ab7 #337ab7;display:block;margin-left:auto;margin-right:auto;',
),
);
$form['miniorange_saml_support_note'] = array(
'#markup' => '<div>If you want custom features in the plugin, just drop an email to
<a href="mailto:drupalsupport@xecurify.com">drupalsupport@xecurify.com</a></div>
</div></div><div hidden id="mosaml-feedback-overlay"></div>',
);
}