function pay_method_list in Pay 7
Same name and namespace in other branches
- 6 pay.module \pay_method_list()
Helper function to list all payment methods available.
File
- ./
pay.module, line 503 - 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;
}