You are here

function forena_current_user_name in Forena Reports 8

Same name and namespace in other branches
  1. 6.2 forena.module \forena_current_user_name()
  2. 6 forena.module \forena_current_user_name()
  3. 7.5 forena.module \forena_current_user_name()
  4. 7 forena.module \forena_current_user_name()
  5. 7.2 forena.module \forena_current_user_name()
  6. 7.3 forena.module \forena_current_user_name()
  7. 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;
  }
}