function theme_login_destination_roles in Login Destination 7
Render a roles of login destination rule.
1 theme call to theme_login_destination_roles()
- login_destination_overview_form in ./
login_destination.admin.inc - Form for editing an entire login destination at once.
File
- ./
login_destination.admin.inc, line 333 - Admin page callback file for the Login Destination module.
Code
function theme_login_destination_roles($variables) {
$items = array_values(array_intersect_key(_login_destination_role_options(), $variables['items']));
if (empty($items)) {
return '<i>' . t('All roles') . '</i>';
}
return theme('item_list', array(
'items' => $items,
));
}