You are here

function lingotek_access_tlmi in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.7 lingotek.util.inc \lingotek_access_tlmi()
  2. 7.4 lingotek.util.inc \lingotek_access_tlmi()
  3. 7.5 lingotek.util.inc \lingotek_access_tlmi()
  4. 7.6 lingotek.util.inc \lingotek_access_tlmi()
1 string reference to 'lingotek_access_tlmi'
lingotek_menu in ./lingotek.module
Implements hook_menu().

File

./lingotek.util.inc, line 379
Utility functions.

Code

function lingotek_access_tlmi($permission) {
  $hide_top_level_menu_item = variable_get('lingotek_hide_tlmi', 0);
  if ($hide_top_level_menu_item) {
    return FALSE;
  }
  else {
    return user_access($permission);
  }
}