function theme_privatemsg_roles_format in Privatemsg 6.2
Same name and namespace in other branches
- 7.2 privatemsg_roles/privatemsg_roles.module \theme_privatemsg_roles_format()
- 7 privatemsg_roles/privatemsg_roles.module \theme_privatemsg_roles_format()
Format a role to be displayed as a recipient.
File
- privatemsg_roles/
privatemsg_roles.module, line 90 - Allows to send messages to all members of a role.
Code
function theme_privatemsg_roles_format($role, $options = array()) {
if (!empty($options['plain'])) {
$name = $role->name;
if (!empty($options['unique'])) {
$name .= ' [role]';
}
return $name;
}
return t('%role (role)', array(
'%role' => $role->name,
));
}