function shareaholic_failure_modal_form in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3
Same name and namespace in other branches
- 8 includes/shareaholic_failure_modal.php \shareaholic_failure_modal_form()
Returns the form for the failure modal popup
1 string reference to 'shareaholic_failure_modal_form'
- ShareaholicAdmin::draw_failure_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_failure_modal.php, line 13 - This file is responsible for the failure modal popup (rendering/and handling submit)
Code
function shareaholic_failure_modal_form() {
$form['#theme'] = 'shareaholic_failure_modal';
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Retry'),
);
$form['submit']['#attributes']['class'][] = 'btn_main';
return $form;
}