Can anyone explain to me how to create a link for subuser creation.
I have a role which could create a subuser which is in another role.
I have tried with views and block, but it doesnt work for me.
Can anyone guide me in short lines how to achive this possibility?
Thanks in advance

Comments

Dublin Drupaller’s picture

here's a snippet you can use.

place this in the block body and remember to select PHP as the input format.

<?php global $user; ?>
<p><a href="/user/<?php print $user->uid ;?>/subuser/create" title="Click to setup a new subuser account">Setup a new subuser account</a></p>

you can obviously restrict the block to only appear for role types that have permissions to create subusers.

hope that helps.

Dub

fusedpro’s picture

Status: Active » Fixed

This seems to be completed -- feel free to re-open it if you have any further issues.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.