API page: https://api.drupal.org/api/drupal/modules%21user%21user.api.php/function...

the documentation talks about db_transaction and writing to database, but this hook is invoked in user_view and no call for user_save is made .
so the documentation about database transaction writing is completely irrelevant .

Comments

jhodgdon’s picture

Issue tags: +Novice

Thanks! Yes that part about transactions is not relevant. I think it was added to a bunch of functions and mistakenly added to this one. It should be removed.

pushpinderchauhan’s picture

Status: Active » Needs review
StatusFileSize
new991 bytes

Removed unrelated documentation in this patch.

jhodgdon’s picture

Title: no user_save is user_view » hook_user_view documentation has incorrect piece
Status: Needs review » Reviewed & tested by the community

Thanks!

  • jhodgdon committed 1e3e775 on 7.x
    Issue #2377879 by er.pushpinderrana, yakoub: hook_user_view...
jhodgdon’s picture

Status: Reviewed & tested by the community » Fixed

Thanks again! Committed to 7.x.

Status: Fixed » Closed (fixed)

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