I wante'd to create a link in an userview to the users profilepage, like "show userprofile" with a simple field (not with custom text, link and user/[uid]) and created this patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Hydra’s picture

Here the patch

dawehner’s picture

that's an empty patch...

Hydra’s picture

sorry, something went wrong, here the patch

dawehner’s picture

Status: Active » Needs review

Update the status.

Hydra’s picture

Status: Needs review » Active
FileSize
1.88 KB

Next try, I fixed the permissions for viewing the field

dawehner’s picture

Status: Active » Needs work
FileSize
60.7 KB

Update status :)

Please install dreditor on your browser(firefox, chrome). Once you have this you will see a review link beside each patch,
see screenshot. There are empty spaces and some tabs.

Some more comments:

+++ b/modules/user/views_handler_field_user_path.incundefined
@@ -0,0 +1,14 @@
+      if(user_access('access user profiles')) {

small code style problem if () instead of if() ... and you check for $data

Additional you should check that $data exists as on the previous patch.

That's the normal way of patch review process: firm but fair.

Hydra’s picture

Status: Needs work » Needs review
FileSize
1.87 KB

Thank you for your advices dereine! Somehow like this?

dawehner’s picture

Status: Needs review » Needs work

Technical this is the same field as "node: link", so this should be the same here

so $data['users']['view_user'] etc.
Additional the handler has to be renamed etc. I'm sorry for that.

Hydra’s picture

Title: Field to userprofile in userview » make link to field usable
Status: Needs work » Needs review
FileSize
575 bytes

I found out, that the views_handler_field_user_link already was commited, just the registration of the field in user.view is missing.

dawehner’s picture

Status: Needs review » Fixed

Thanks!

dawehner’s picture

Thanks!

Status: Fixed » Closed (fixed)

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