function _me_is_alias in me aliases 7
Same name and namespace in other branches
- 8 me.module \_me_is_alias()
- 6.2 me.module \_me_is_alias()
- 6 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.
4 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_plugin_argument_validate_me_alias::validate_argument in includes/
views/ handlers/ me_plugin_argument_validate_me_alias.inc - Performs the actual validation.
- _me_check_arg in ./
me.module - A Helper function to check for the 'me' alias.
- _me_check_path in ./
me.module - Helper function to check if a path can be rewritten or not.
File
- ./
me.module, line 506 - 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;
}