/**
  * Adds a "Function menu module" ('third level module') to an existing function menu for some other backend module
  * The arguments values are generally determined by which function menu this is supposed to interact with
  * See Inside TYPO3 for information on how to use this function.
  * FOR USE IN ext_tables.php FILES
  *
  * @param string $modname Module name
  * @param string $className Class name
  * @param string $classPath Class path, deprecated since 6.2, use auto-loading instead
  * @param string $title Title of module
  * @param string $MM_key Menu array key - default is "function
  * @param string $WS Workspace conditions. Blank means all workspaces, any other string can be a comma list of "online", "offline" and "custom
  * @return void
  * @see \TYPO3\CMS\Backend\Module\BaseScriptClass::mergeExternalItems()
  */
 public static function insertModuleFunction($modname, $className, $classPath, $title, $MM_key = 'function', $WS = '')
 {
     if (!empty($classPath)) {
         GeneralUtility::deprecationLog(sprintf('insertModuleFunction(%s, %s, ...): Use auto-loading for the class and pass NULL as $classPath since 6.2.', $modname, $className));
     }
     $GLOBALS['TBE_MODULES_EXT'][$modname]['MOD_MENU'][$MM_key][$className] = array('name' => $className, 'path' => $classPath, 'title' => $title, 'ws' => $WS);
 }