You are here

function _me_user_disabled in me aliases 6

Same name and namespace in other branches
  1. 8 me.module \_me_user_disabled()
  2. 6.2 me.module \_me_user_disabled()
  3. 7 me.module \_me_user_disabled()

Helper function to check if a user can have, and has me disabled.

Return value

boolean TRUE if the user has me disabled. FALSE otherwise.

2 calls to _me_user_disabled()
me_handler in ./me.module
A special menu callback function that either redirects to a page with the uid in the path, or calls the real menu handler.
me_to_arg in ./me.module
Menu to_arg function for %me.

File

./me.module, line 239
Provides 'me' aliases to allow users to enter 'me' in common paths instead of their user id.

Code

function _me_user_disabled() {
  return me_variable_get('me_user_override') && !empty($GLOBALS['user']->me_disable);
}