The page callback for the path /user is user_page(), however this is documented as being the access callback for this path:

/**
 * Access callback for path /user.
 *
 * Displays user profile if user is logged in, or login form for anonymous
 * users.
 */
function user_page() {
...
}

Comments

pfrenssen’s picture

Status: Active » Needs review
StatusFileSize
new474 bytes
pfrenssen’s picture

Version: 8.x-dev » 7.x-dev
Component: user.module » documentation
StatusFileSize
new436 bytes

user_page() has been converted to a controller in D8, so this problem does not occur any more in D8. It still occurs in D7 however. Here is a backport for D7.

jhodgdon’s picture

Status: Needs review » Needs work

We actually have a standard for how to document page callbacks:
https://drupal.org/node/1354#menu-callback
Just a slight change is needed to your patch... Thanks!

pfrenssen’s picture

Status: Needs work » Needs review
StatusFileSize
new625 bytes

Thanks! Updated the documentation according to the standard, looks much better now :)

jhodgdon’s picture

Status: Needs review » Needs work

Thanks! This needs a : not ; in the first line.

pfrenssen’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new625 bytes

Thanks! Here's a corrected version.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Thanks! Looks right to me now.

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.