You are here

function pay_form_settings in Pay 6

Same name and namespace in other branches
  1. 7 includes/pay.admin.inc \pay_form_settings()

File

includes/pay.admin.inc, line 216
Administration form settings and related functions.

Code

function pay_form_settings(&$form_state, $pay_form, $destination = NULL) {
  if (!is_object($pay_form)) {
    $pay_form = pay_form_load($pay_form);
  }
  $pay_form
    ->settings_form($form, $form_state);

  // Allow destination to be specified in hook_menu().
  if (isset($destination)) {
    $form['destination'] = array(
      '#type' => 'hidden',
      '#value' => $destination,
    );
  }
  return $form;
}