drupal - What is the opposite of Access Callback user_is_anonymous? -


I know that in a drupal module it is used to specify that only anonymous users see that module You can. What will be the callback that only specifies log-in users?

I have a page that I want to reach only for users to log in.

Thanks

This is the function, which basically checks that the user's ID ($ globals ['user'] -> UID) is greater than zero.

The function converts the UID into a Boolean type and returns TRUE to any user, because it will be a UID which is a positive number. Drupal provides an UID of 0 to unknown users, which is incorrect when converting to Boolean.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -