function tft_get_username in Taxonomy File Tree 7.2
Get the username.
Parameters
int $uid:
Return value
string
Related topics
1 call to tft_get_username()
- tft_get_content in ./
tft.module - Get the folder content and return it in an array form for the theme_table call.
File
- ./
tft.module, line 597 - Hook implementations and module logic for TFT.
Code
function tft_get_username($uid) {
return db_query("SELECT name FROM {users} WHERE uid = :uid", array(
':uid' => $uid,
))
->fetchField();
}