What is the opposite of Access Callback user_is_anonymous?

I know what is used in the drupal module to indicate that only anonymous users can see this module. What will be the callback that indicates only registered users?

I have a page in which I want only login access.

thank

+3
source share
1 answer

This is the user_is_logged_in () function , which basically checks that the user ID ($ GLOBALS ['user'] → uid) is greater than zero.

uid TRUE , , uid, . Drupal uid 0, FALSE .

+4

Source: https://habr.com/ru/post/1749879/


All Articles