You are here

function uc_roles_message_formats in Ubercart 7.3

Options list callback for message formats.

1 string reference to 'uc_roles_message_formats'
uc_roles_rules_action_info in uc_roles/uc_roles.rules.inc
Implements hook_rules_action_info().

File

uc_roles/uc_roles.rules.inc, line 162
Rules hooks for uc_roles.module.

Code

function uc_roles_message_formats() {
  global $user;
  $options = array();
  $formats = filter_formats($user);
  foreach ($formats as $format) {
    $options[$format->format] = $format->name;
  }
  return $options;
}