You are here

function pay_method_list in Pay 6

Same name and namespace in other branches
  1. 7 pay.module \pay_method_list()

Helper function to list all payment methods available.

File

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

Code

function pay_method_list() {
  $list = array();
  $res = db_query("SELECT * FROM {pay_method} WHERE STATUS = 1 ORDER BY title");
  while ($row = db_fetch_object($res)) {
    $list[$row->pmid] = pay_method_load($row);
  }
  return $list;
}