def core__generate_menu_sub_item key, values, module_name
      menu_sub_item = {}
      menu_sub_item[:key] = key
      menu_sub_item[:title] = values[:title] ? core__get_menu_title_translation(values[:title], module_name) : 'Undefined'
      menu_sub_item[:url] = values[:url] ? values[:url] : ''
      menu_sub_item[:permission_min] = values[:permission_min] ? values[:permission_min] : 0
      menu_sub_item[:permission_max] = values[:permission_max] ? values[:permission_max] : 999
      return menu_sub_item
    end
def core__generate_menu_sub_item key, values, module_name
      menu_sub_item = {}
      menu_sub_item[:key] = key
      menu_sub_item[:title] = values[:title] ? core__get_menu_title_translation(values[:title], module_name) : 'Undefined'
      menu_sub_item[:url] = values[:url] ? values[:url] : ''
      menu_sub_item[:permission_min] = values[:permission_min] ? values[:permission_min] : 0
      menu_sub_item[:permission_max] = values[:permission_max] ? values[:permission_max] : 999
      return menu_sub_item
    end
This function create a correct menu sub itam object for the menu.