0

I need a function that checks a condition; for example, if $a == $b it should return the access denied page to the current user.

What function should I use?

1 Answer 1

0

I think you are looking for the function which returns the access denied page; that is drupal_access_denied(). Just call this function inside your conditional statement.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.