Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#9 | user_path_field-1214430-9.patch | 575 bytes | Hydra |
#7 | user_path_field-1214430-7.patch | 1.87 KB | Hydra |
#6 | screen14.png | 60.7 KB | dawehner |
#5 | user_path_field-1214430-5.patch | 1.88 KB | Hydra |
#3 | user_path_field-1214430-3.patch | 2.01 KB | Hydra |
Comments
Comment #1
Hydra CreditAttribution: Hydra commentedHere the patch
Comment #2
dawehnerthat's an empty patch...
Comment #3
Hydra CreditAttribution: Hydra commentedsorry, something went wrong, here the patch
Comment #4
dawehnerUpdate the status.
Comment #5
Hydra CreditAttribution: Hydra commentedNext try, I fixed the permissions for viewing the field
Comment #6
dawehnerUpdate 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:
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.
Comment #7
Hydra CreditAttribution: Hydra commentedThank you for your advices dereine! Somehow like this?
Comment #8
dawehnerTechnical 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.
Comment #9
Hydra CreditAttribution: Hydra commentedI found out, that the views_handler_field_user_link already was commited, just the registration of the field in user.view is missing.
Comment #10
dawehnerThanks!
Comment #11
dawehnerThanks!