function workbench_email_get_role_by_rid in Workbench Email 7.3
Returns role object.
Parameters
int $rid: The role id.
Return value
object The role object.
2 calls to workbench_email_get_role_by_rid()
- workbench_email_get_workbench_access_editors in ./
workbench_email.module - Get all the editors of workbench access section.
- workbench_email_mail_send in ./
workbench_email.module - Determines the emails attributes.
File
- ./
workbench_email.module, line 615 - Code for the Workbench Email Module.
Code
function workbench_email_get_role_by_rid($rid) {
if ($rid == WORKBENCH_EMAIL_AUTHOR) {
$role = workbench_email_get_author_role();
}
else {
$role = user_role_load($rid);
}
return $role;
}