You are here

function _me_user_disabled in me aliases 8

Same name and namespace in other branches
  1. 6.2 me.module \_me_user_disabled()
  2. 6 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 223
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);
}