You are here

function hook_pay_user_settings_form in Pay 6

Same name and namespace in other branches
  1. 7 pay.api.php \hook_pay_user_settings_form()

Modify or append settings to a user's payment settings page.

1 invocation of hook_pay_user_settings_form()
pay_user_settings_form in ./pay.module
A form callback for a user's 'Payment settings' page.

File

./pay.api.php, line 71
Hooks provided by the Pay module.

Code

function hook_pay_user_settings_form(&$form, &$form_state) {
  $form['mymodule'] = array(
    '#type' => 'fieldset',
    '#title' => t('Settings for My Module'),
  );
  $form['mymodule']['donation'] = array(
    '#type' => 'checkbox',
    '#title' => t('Donate all profits to the Payment API developers'),
    '#default_value' => 1,
  );
}