function uc_order_handler_filter_payment_method::get_value_options in Ubercart 7.3
Overrides views_handler_filter_in_operator::get_value_options().
Overrides views_handler_filter_in_operator::get_value_options
File
- uc_order/
views/ uc_order_handler_filter_payment_method.inc, line 16 - Views handler: Returns payment method name for payment method id.
Class
- uc_order_handler_filter_payment_method
- Filters by payment method.
Code
function get_value_options() {
if (!isset($this->value_options)) {
$this->value_options = array();
if (module_exists('uc_payment')) {
$methods = _uc_payment_method_list();
foreach ($methods as $method) {
$this->value_options[$method['id']] = $method['name'];
}
}
}
}