function shareaholic_reset_plugin_form in Share Buttons, Related Posts, Content Analytics - Shareaholic 8
Same name and namespace in other branches
- 7.3 includes/shareaholic_reset_plugin_form.php \shareaholic_reset_plugin_form()
The form object for the reset plugin The form will have button to reset the plugin
1 string reference to 'shareaholic_reset_plugin_form'
File
- includes/
shareaholic_reset_plugin_form.php, line 15 - This file is responsible for the reset plugin form (rendering/handling)
Code
function shareaholic_reset_plugin_form() {
$form['reset'] = array(
'#prefix' => '<fieldset class="app"><legend><h2>' . t('Reset') . '</h2></legend>',
'#suffix' => '</fieldset>',
);
$form['reset']['submit'] = array(
'#type' => 'submit',
'#prefix' => '<p>' . t('This will reset all of your settings and start you from scratch. This can not be undone.') . '</p>',
'#value' => t('Reset Module'),
);
$form['reset']['submit']['#attributes']['class'][] = 'settings';
$form['reset']['submit']['#attributes']['onclick'][] = 'this.value="Resetting..."';
return $form;
}