function _me_is_alias in me aliases 6
Same name and namespace in other branches
- 8 me.module \_me_is_alias()
- 6.2 me.module \_me_is_alias()
- 7 me.module \_me_is_alias()
A helper function to check if a string is equal to the 'me' alias.
Parameters
$arg: The argument to check.
Return value
boolean TRUE if the argument given is a 'me' alias. FALSE otherwise.
7 calls to _me_is_alias()
- 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_views_handler_argument_user_name::options_validate in includes/
me_views_handler_argument_user_name.inc - Validate the options form.
- me_views_handler_argument_user_name::set_argument in includes/
me_views_handler_argument_user_name.inc - Set the input for this argument
- me_views_handler_argument_user_uid::options_validate in includes/
me_views_handler_argument_user_uid.inc - Validate the options form.
- me_views_handler_argument_user_uid::set_argument in includes/
me_views_handler_argument_user_uid.inc - Set the input for this argument
File
- ./
me.module, line 490 - Provides 'me' aliases to allow users to enter 'me' in common paths instead of their user id.
Code
function _me_is_alias($arg) {
$compare_function = me_variable_get('me_case_insensitive') ? 'strcasecmp' : 'strcmp';
return $compare_function($arg, _me_get_me_alias()) === 0;
}