function shareaholic_tos_modal_form in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3
Same name and namespace in other branches
- 8 includes/shareaholic_tos_modal.php \shareaholic_tos_modal_form()
Returns the form for the terms of service modal popup
1 string reference to 'shareaholic_tos_modal_form'
- ShareaholicAdmin::draw_tos_popup in ./
admin.php - Outputs the actual html for either the terms_of_service modal to be rendered on the admin pages
File
- includes/
shareaholic_tos_modal.php, line 13 - This file is responsible for the terms of service modal popup (rendering/and handling submit)
Code
function shareaholic_tos_modal_form() {
$form['#theme'] = 'shareaholic_tos_modal';
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Get Started »'),
);
$form['submit']['#attributes']['class'][] = 'btn_main';
return $form;
}