function pay_form::pay_method_list in Pay 7
Same name and namespace in other branches
- 6 includes/handlers/pay_form.inc \pay_form::pay_method_list()
@todo Please document this function.
See also
1 call to pay_form::pay_method_list()
- pay_form::settings_form in includes/
handlers/ pay_form.inc
File
- includes/
handlers/ pay_form.inc, line 134 - The base class for payment activities. All payment form classes should extend this.
Class
- pay_form
- @file The base class for payment activities. All payment form classes should extend this.
Code
function pay_method_list() {
$list = array();
$result = db_query("SELECT * FROM {pay_method} WHERE STATUS = 1 ORDER BY title");
while ($row = $result
->fetchObject()) {
$list[$row->pmid] = $row->title;
}
return $list;
}