function hook_user_relationship_blocks_get_uid in User Relationships 7
Return the user that is currently displayed.
Parameters
$delta: The delta of the currently viewed block.
Return value
The uid of the user currently displayed on this page, if any.
1 invocation of hook_user_relationship_blocks_get_uid()
- _user_relationship_blocks_get_uid in user_relationship_blocks/
user_relationship_blocks.module - Figure out which account is currently viewed.
File
- user_relationship_blocks/
user_relationship_blocks.api.php, line 18 - API documentation for user_relationship_blocks module.
Code
function hook_user_relationship_blocks_get_uid($delta) {
if (arg(0) == 'mypath') {
return arg(1);
}
}