function forena_current_user_name in Forena Reports 8
Same name and namespace in other branches
- 6.2 forena.module \forena_current_user_name()
- 6 forena.module \forena_current_user_name()
- 7.5 forena.module \forena_current_user_name()
- 7 forena.module \forena_current_user_name()
- 7.2 forena.module \forena_current_user_name()
- 7.3 forena.module \forena_current_user_name()
- 7.4 forena.module \forena_current_user_name()
Helper function for current user for the drupal instance
Return value
unknown
File
- ./
forena.module, line 446
Code
function forena_current_user_name() {
$user = \Drupal::currentUser();
if (isset($user->name)) {
return $user->name;
}
else {
return NULL;
}
}