function uc_order_message_formats in Ubercart 8.4
Same name and namespace in other branches
- 7.3 uc_order/uc_order.rules.inc \uc_order_message_formats()
Options list callback for message formats.
1 string reference to 'uc_order_message_formats'
- uc_order_rules_action_info in uc_order/
uc_order.rules.inc - Implements hook_rules_action_info().
File
- uc_order/
uc_order.rules.inc, line 477 - Rules integration for order-related entity events, conditions, and actions.
Code
function uc_order_message_formats() {
global $user;
$options = [];
$formats = filter_formats($user);
foreach ($formats as $format) {
$options[$format->format] = $format->name;
}
return $options;
}