function _cmf_get_user_path in Content Management Filter 7
Same name and namespace in other branches
- 5 cmf.module \_cmf_get_user_path()
- 6.2 cmf.module \_cmf_get_user_path()
- 6 cmf.module \_cmf_get_user_path()
Get the alias path to a user profile
Parameters
user ID:
Return value
the relative URL of the user profile
1 call to _cmf_get_user_path()
- theme_cmf_user in ./
cmf.module - Theme user cell on table result.
File
- ./
cmf.module, line 1052 - @brief Content management filter module file
Code
function _cmf_get_user_path($uid) {
return db_result(db_query("\n SELECT dst\n FROM {url_alias}\n WHERE src = '%s';", 'user/' . $uid));
}