You are here

function pay_user_settings_form in Pay 7

Same name and namespace in other branches
  1. 6 pay.module \pay_user_settings_form()

A form callback for a user's 'Payment settings' page.

1 string reference to 'pay_user_settings_form'
pay_user_settings_page in ./pay.module
Form builder; Present the form to edit a user's payment settings.

File

./pay.module, line 152
Pay module allows for accepting payments using pluggable payment backends.

Code

function pay_user_settings_form($form, &$form_state, $account, $category = 'default') {
  $form = array();

  // Rely on whatever the underlying hooks might return.
  foreach (module_implements('pay_user_settings_form') as $module) {
    $func = $module . '_pay_user_settings_form';
    $func($form, $form_state, $account);
  }
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}