You are here

function shareaholic_reset_plugin_form in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3

Same name and namespace in other branches
  1. 8 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'
shareaholic_admin_advanced.tpl.php in templates/shareaholic_admin_advanced.tpl.php

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;
}