function hosting_client_user_view in Hosting 5
Same name and namespace in other branches
- 6.2 client/hosting_client.access.inc \hosting_client_user_view()
- 7.4 client/hosting_client.access.inc \hosting_client_user_view()
- 7.3 client/hosting_client.access.inc \hosting_client_user_view()
1 call to hosting_client_user_view()
- hosting_client_user in client/
hosting_client.access.inc - Implementation of hook_user().
File
- client/
hosting_client.access.inc, line 40 - Control client node access
Code
function hosting_client_user_view($user) {
if ($user->client_id) {
foreach ($user->client_id as $client => $type) {
$rows[] = array(
_hosting_node_link($client),
);
}
// this is a table because we'll have types for clients eventually
$header = array(
t('Hosting client'),
);
$items['client_list'] = array(
'value' => theme('table', $header, $rows),
'class' => 'client',
);
return array(
t('Clients') => $items,
);
}
}