function uc_file_message_formats in Ubercart 8.4
Same name and namespace in other branches
- 7.3 uc_file/uc_file.rules.inc \uc_file_message_formats()
Options list callback for message formats.
1 string reference to 'uc_file_message_formats'
- uc_file_rules_action_info in uc_file/
uc_file.rules.inc - Implements hook_rules_action_info().
File
- uc_file/
uc_file.rules.inc, line 188 - Rules hooks and functions for uc_file.module.
Code
function uc_file_message_formats() {
global $user;
$options = [];
$formats = filter_formats($user);
foreach ($formats as $format) {
$options[$format->format] = $format->name;
}
return $options;
}