/** * @see CommonGLPI::getTabNameForItem() * * @param $item CommonGLPI object * @param $withtemplate (default 0) **/ function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { if ($item->isDynamic() && $item->canCreate()) { return Lock::getTypeName(2); } return ''; }